OSDN Git Service

Revert "net-sysfs: Fix memory leak in netdev_register_kobject"
authorWang Hai <wanghai26@huawei.com>
Fri, 12 Apr 2019 20:36:33 +0000 (16:36 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Apr 2019 20:10:27 +0000 (13:10 -0700)
commit8ed633b9baf9ec7d593ebb8e256312ff1c70ab37
treeb62028b8430e093961cb7ece88cc8a9ad2dc902a
parenta44acf906061c17557b2137911b9e1a7eb64dc67
Revert "net-sysfs: Fix memory leak in netdev_register_kobject"

This reverts commit 6b70fc94afd165342876e53fc4b2f7d085009945.

The reverted bugfix will cause another issue.
Reported by syzbot+6024817a931b2830bc93@syzkaller.appspotmail.com.
See https://syzkaller.appspot.com/x/log.txt?x=1737671b200000 for
details.

Signed-off-by: Wang Hai <wanghai26@huawei.com>
Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/net-sysfs.c