bonding: fix off-by-one error
[platform/adaptation/renesas_rcar/renesas_kernel.git] / drivers / net / bonding / bond_sysfs.c
index dc15d24..238d9b3 100644 (file)
@@ -1060,7 +1060,7 @@ static ssize_t bonding_store_primary(struct device *d,
                goto out;
        }
 
-       sscanf(buf, "%16s", ifname); /* IFNAMSIZ */
+       sscanf(buf, "%15s", ifname); /* IFNAMSIZ */
 
        /* check to see if we are clearing primary */
        if (!strlen(ifname) || buf[0] == '\n') {