[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 291 if (!capable(CAP_NET_ADMIN)) 292 292 return -EPERM; 293 293 294 - spin_lock_bh(&br->lock); 295 294 if ((p = br_get_port(br, args[1])) == NULL) 296 295 ret = -EINVAL; 297 296 else 298 297 br_stp_set_path_cost(p, args[2]); 299 - spin_unlock_bh(&br->lock); 298 + 300 299 return ret; 301 300 } 302 301