]> Pileus Git - ~andy/linux/blobdiff - net/core/net-sysfs.c
Merge branch 'topic/asoc' into for-linus
[~andy/linux] / net / core / net-sysfs.c
index 821d30918cfc4f3ebbb2cd79e49dc74e345e61d9..427ded841224e6b7ce79cc91158efec24ab54b4a 100644 (file)
@@ -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;
 }