]> git.baikalelectronics.ru Git - kernel.git/commit
net: don't decrement kobj reference count on init failure
authorstephen hemminger <stephen@networkplumber.org>
Fri, 18 Aug 2017 20:46:19 +0000 (13:46 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 19 Aug 2017 05:37:03 +0000 (22:37 -0700)
commitd425445e134d791034aec1651cd9084b6b3fed4d
tree2bebd60c2b10c02fc44f5ea24f667f4b60dfe35f
parenta82137465b7e06aef7d361972715c1b630d7b37d
net: don't decrement kobj reference count on init failure

If kobject_init_and_add failed, then the failure path would
decrement the reference count of the queue kobject whose reference
count was already zero.

Fixes: c51c8a153113 ("bql: Byte queue limits")
Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/net-sysfs.c