Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 150319
b: refs/heads/master
c: af38f29
h: refs/heads/master
i:
  150317: 07ab2a0
  150315: 7dbc2fe
  150311: 9a7be61
  150303: da1f7b2
v: v3
  • Loading branch information
Eric W. Biederman authored and David S. Miller committed May 19, 2009
1 parent c6decbc commit 086d575
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9b8adb5ea005fe73acd5dd58f9bd47eafa74c9d1
refs/heads/master: af38f2989572704a846a5577b5ab3b1e2885cbfb
3 changes: 2 additions & 1 deletion trunk/net/bridge/br_sysfs_br.c
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,8 @@ static ssize_t store_stp_state(struct device *d,
if (endp == buf)
return -EINVAL;

rtnl_lock();
if (!rtnl_trylock())
return restart_syscall();
br_stp_set_enabled(br, val);
rtnl_unlock();

Expand Down
3 changes: 2 additions & 1 deletion trunk/net/bridge/br_sysfs_if.c
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,8 @@ static ssize_t brport_store(struct kobject * kobj,

val = simple_strtoul(buf, &endp, 0);
if (endp != buf) {
rtnl_lock();
if (!rtnl_trylock())
return restart_syscall();
if (p->dev && p->br && brport_attr->store) {
spin_lock_bh(&p->br->lock);
ret = brport_attr->store(p, val);
Expand Down

0 comments on commit 086d575

Please sign in to comment.