]> git.baikalelectronics.ru Git - kernel.git/commit
netlink: do not allocate a device refcount tracker in ethnl_default_notify()
authorEric Dumazet <edumazet@google.com>
Wed, 5 Jan 2022 17:08:49 +0000 (09:08 -0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 5 Jan 2022 17:50:06 +0000 (09:50 -0800)
commita67ac988c6b51757443a7101003be453a8504aa1
tree97999968629946b6d0bfa7c4910663eb0d6fcd95
parent82a213cad743e90a2f12882eb93ed527270edd13
netlink: do not allocate a device refcount tracker in ethnl_default_notify()

As reported by Johannes, the tracker allocated in
ethnl_default_notify() is not really needed, as this
function is not expected to change a device reference count.

Fixes: a5a0a39f60e4 ("netlink: add net device refcount tracker to struct ethnl_req_info")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: Johannes Berg <johannes@sipsolutions.net>
Tested-by: Johannes Berg <johannes@sipsolutions.net>
Link: https://lore.kernel.org/r/20220105170849.2610470-1-eric.dumazet@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ethtool/netlink.c