Skip to content

Commit

Permalink
bql: fix CONFIG_XPS=n build
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Dec 5, 2011
1 parent 4fa48bf commit b474ae7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions net/core/net-sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -1221,9 +1221,7 @@ static void netdev_queue_release(struct kobject *kobj)

static struct kobj_type netdev_queue_ktype = {
.sysfs_ops = &netdev_queue_sysfs_ops,
#ifdef CONFIG_XPS
.release = netdev_queue_release,
#endif
.default_attrs = netdev_queue_default_attrs,
};

Expand Down

0 comments on commit b474ae7

Please sign in to comment.