]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
mctp: Avoid warning if unregister notifies twice
authorMatt Johnston <matt@codeconstruct.com.au>
Fri, 25 Feb 2022 05:39:36 +0000 (13:39 +0800)
committerJakub Kicinski <kuba@kernel.org>
Sat, 26 Feb 2022 06:23:23 +0000 (22:23 -0800)
commitf62457df5cc46ea0729fface07ffa885e85ef404
treeaa68cbcfc287d0dd527315cebd7903b8f59e130e
parent23d743301198f7903d732d5abb4f2b44f22f5df0
mctp: Avoid warning if unregister notifies twice

Previously if an unregister notify handler ran twice (waiting for
netdev to be released) it would print a warning in mctp_unregister()
every subsequent time the unregister notify occured.

Instead we only need to worry about the case where a mctp_ptr is
set on an unknown device type.

Signed-off-by: Matt Johnston <matt@codeconstruct.com.au>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/mctp/device.c