]> git.baikalelectronics.ru Git - kernel.git/commitdiff
ibmvnic: Fix size of debugfs name buffer
authorThomas Falcon <tlfalcon@linux.vnet.ibm.com>
Fri, 11 Nov 2016 17:00:46 +0000 (11:00 -0600)
committerDavid S. Miller <davem@davemloft.net>
Sun, 13 Nov 2016 18:42:35 +0000 (13:42 -0500)
This mistake was causing debugfs directory creation
failures when multiple ibmvnic devices were probed.

Signed-off-by: Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ibmvnic.c

index 921c40fad1c3e28654e7442724d1446c2d5d9b47..4f3281a03e7e0d969c5637b523ae9771e75f264e 100644 (file)
@@ -3705,7 +3705,7 @@ static int ibmvnic_probe(struct vio_dev *dev, const struct vio_device_id *id)
        struct net_device *netdev;
        unsigned char *mac_addr_p;
        struct dentry *ent;
-       char buf[16]; /* debugfs name buf */
+       char buf[17]; /* debugfs name buf */
        int rc;
 
        dev_dbg(&dev->dev, "entering ibmvnic_probe for UA 0x%x\n",