|
@@ -291,12 +291,11 @@ static int old_dev_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
|
|
if (!capable(CAP_NET_ADMIN))
|
|
if (!capable(CAP_NET_ADMIN))
|
|
return -EPERM;
|
|
return -EPERM;
|
|
|
|
|
|
- spin_lock_bh(&br->lock);
|
|
|
|
if ((p = br_get_port(br, args[1])) == NULL)
|
|
if ((p = br_get_port(br, args[1])) == NULL)
|
|
ret = -EINVAL;
|
|
ret = -EINVAL;
|
|
else
|
|
else
|
|
br_stp_set_path_cost(p, args[2]);
|
|
br_stp_set_path_cost(p, args[2]);
|
|
- spin_unlock_bh(&br->lock);
|
|
|
|
|
|
+
|
|
return ret;
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
|