aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorEric Dumazet <eric.dumazet@gmail.com>2011-12-04 07:38:00 -0500
committerDavid S. Miller <davem@davemloft.net>2011-12-05 18:30:03 -0500
commitb474ae77609b725098d5a7cc8f69c1c528710d53 (patch)
tree3f244ce8da02b04b85974a3d46c6eaf912497c8b /net
parent4fa48bf3c75069d636fc8830743c929a062e80dc (diff)
bql: fix CONFIG_XPS=n build
netdev_queue_release() should be called even if CONFIG_XPS=n to properly release device reference. Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/core/net-sysfs.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/net/core/net-sysfs.c b/net/core/net-sysfs.c
index 3bf72b638d34..9d134636f87c 100644
--- a/net/core/net-sysfs.c
+++ b/net/core/net-sysfs.c
@@ -1221,9 +1221,7 @@ static void netdev_queue_release(struct kobject *kobj)
1221 1221
1222static struct kobj_type netdev_queue_ktype = { 1222static struct kobj_type netdev_queue_ktype = {
1223 .sysfs_ops = &netdev_queue_sysfs_ops, 1223 .sysfs_ops = &netdev_queue_sysfs_ops,
1224#ifdef CONFIG_XPS
1225 .release = netdev_queue_release, 1224 .release = netdev_queue_release,
1226#endif
1227 .default_attrs = netdev_queue_default_attrs, 1225 .default_attrs = netdev_queue_default_attrs,
1228}; 1226};
1229 1227