Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 166974
b: refs/heads/master
c: a160ee6
h: refs/heads/master
v: v3
  • Loading branch information
Johannes Berg authored and David S. Miller committed Oct 5, 2009
1 parent 2d6e519 commit 9997d9e
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 5c6ae5b880b3d19cff6d14f0dcff3362e6f7ffdf
refs/heads/master: a160ee69c6a4622ed30c377a978554015e9931cb
4 changes: 2 additions & 2 deletions trunk/net/core/net-sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -366,13 +366,13 @@ static ssize_t wireless_show(struct device *d, char *buf,
const struct iw_statistics *iw;
ssize_t ret = -EINVAL;

read_lock(&dev_base_lock);
rtnl_lock();
if (dev_isalive(dev)) {
iw = get_wireless_stats(dev);
if (iw)
ret = (*format)(iw, buf);
}
read_unlock(&dev_base_lock);
rtnl_unlock();

return ret;
}
Expand Down

0 comments on commit 9997d9e

Please sign in to comment.