Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 132129
b: refs/heads/master
c: 5a5990d
h: refs/heads/master
i:
  132127: c8764d4
v: v3
  • Loading branch information
Stephen Hemminger authored and David S. Miller committed Mar 3, 2009
1 parent 8c3279c commit 4d0c7bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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: 07555c9880da3e2e96e5eae00a03b44cc076deaf
refs/heads/master: 5a5990d3090b03745a9548a6f5edef02095675cf
4 changes: 3 additions & 1 deletion trunk/net/core/net-sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ static ssize_t netdev_store(struct device *dev, struct device_attribute *attr,
if (endp == buf)
goto err;

rtnl_lock();
if (!rtnl_trylock())
return -ERESTARTSYS;

if (dev_isalive(net)) {
if ((ret = (*set)(net, new)) == 0)
ret = len;
Expand Down

0 comments on commit 4d0c7bc

Please sign in to comment.