summaryrefslogtreecommitdiffstats
path: root/drivers/net/usb
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/usb')
-rw-r--r--drivers/net/usb/qmi_wwan.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/usb/qmi_wwan.c b/drivers/net/usb/qmi_wwan.c
index c6fbc2a2a785..780c10ee359b 100644
--- a/drivers/net/usb/qmi_wwan.c
+++ b/drivers/net/usb/qmi_wwan.c
@@ -429,8 +429,8 @@ static ssize_t add_mux_store(struct device *d, struct device_attribute *attr, c
429 if (kstrtou8(buf, 0, &mux_id)) 429 if (kstrtou8(buf, 0, &mux_id))
430 return -EINVAL; 430 return -EINVAL;
431 431
432 /* mux_id [1 - 0x7f] range empirically found */ 432 /* mux_id [1 - 254] for compatibility with ip(8) and the rmnet driver */
433 if (mux_id < 1 || mux_id > 0x7f) 433 if (mux_id < 1 || mux_id > 254)
434 return -EINVAL; 434 return -EINVAL;
435 435
436 if (!rtnl_trylock()) 436 if (!rtnl_trylock())