]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/net/bonding/bond_main.c
bonding: fix a race condition in calls to slave MII ioctls
[karo-tx-linux.git] / drivers / net / bonding / bond_main.c
index 3f05267b2cfd880a5af421d53d0e8e2a7afb3428..40fb5eefc72e63b884d6f69a2897ef9b0038f1cd 100644 (file)
@@ -691,7 +691,7 @@ static int bond_check_dev_link(struct bonding *bond,
                               struct net_device *slave_dev, int reporting)
 {
        const struct net_device_ops *slave_ops = slave_dev->netdev_ops;
-       static int (*ioctl)(struct net_device *, struct ifreq *, int);
+       int (*ioctl)(struct net_device *, struct ifreq *, int);
        struct ifreq ifr;
        struct mii_ioctl_data *mii;