aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bonding/bond_sysfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/bonding/bond_sysfs.c')
-rw-r--r--drivers/net/bonding/bond_sysfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/bonding/bond_sysfs.c b/drivers/net/bonding/bond_sysfs.c
index 485bedb8278..dc15d248443 100644
--- a/drivers/net/bonding/bond_sysfs.c
+++ b/drivers/net/bonding/bond_sysfs.c
@@ -1495,7 +1495,7 @@ static ssize_t bonding_store_queue_id(struct device *d,
1495 /* Check buffer length, valid ifname and queue id */ 1495 /* Check buffer length, valid ifname and queue id */
1496 if (strlen(buffer) > IFNAMSIZ || 1496 if (strlen(buffer) > IFNAMSIZ ||
1497 !dev_valid_name(buffer) || 1497 !dev_valid_name(buffer) ||
1498 qid > bond->params.tx_queues) 1498 qid > bond->dev->real_num_tx_queues)
1499 goto err_no_cmd; 1499 goto err_no_cmd;
1500 1500
1501 /* Get the pointer to that interface if it exists */ 1501 /* Get the pointer to that interface if it exists */