]> nv-tegra.nvidia Code Review - linux-2.6.git/blobdiff - net/core/net-sysfs.c
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
[linux-2.6.git] / net / core / net-sysfs.c
index effb78410eb2c9f357e08b4974075359e8e3a4e6..4242e94ff1a5267238ed9749148d63a82c36a550 100644 (file)
@@ -406,13 +406,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;
 }