[PATCH 0/2] net-sysfs: revert wrong bugfix and re-fix

From: Wang Hai
Date: Fri Apr 12 2019 - 00:40:48 EST


First patch reverts the bugfix which cause another issue.
Reported by syzbot+6024817a931b2830bc93@xxxxxxxxxxxxxxxxxxxxxxxxxx
See https://syzkaller.appspot.com/x/log.txt?x=1737671b200000 for details
Second patch improves the first(reverted) patch.
Applied these two patches. I tested, the memory leak issue
wasn't reproduced, and it didn't produce the bug which
reported by syzkaller.

Wang Hai (2):
Revert "net-sysfs: Fix memory leak in netdev_register_kobject"
net-sysfs: Fix memory leak in netdev_register_kobject

net/core/net-sysfs.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

--
1.8.3.1