[BRIDGE]: Fix locking of set path cost.

This change goes with earlier change to get rid of
work queue for path cost. Now stp_set_path_cost does its own
locking. This is to allow it to call br_path_cost() which calls
ethtool interfaces (might sleep).

Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by Stephen Hemminger and committed by David S. Miller 6548cda2 aa6e4a96

+1 -2
+1 -2
net/bridge/br_ioctl.c
··· 291 if (!capable(CAP_NET_ADMIN)) 292 return -EPERM; 293 294 - spin_lock_bh(&br->lock); 295 if ((p = br_get_port(br, args[1])) == NULL) 296 ret = -EINVAL; 297 else 298 br_stp_set_path_cost(p, args[2]); 299 - spin_unlock_bh(&br->lock); 300 return ret; 301 } 302
··· 291 if (!capable(CAP_NET_ADMIN)) 292 return -EPERM; 293 294 if ((p = br_get_port(br, args[1])) == NULL) 295 ret = -EINVAL; 296 else 297 br_stp_set_path_cost(p, args[2]); 298 + 299 return ret; 300 } 301