]> git.baikalelectronics.ru Git - kernel.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)
commit675a73143b7ac29b864b27550eadacb17743ef9d
treeaa68cbcfc287d0dd527315cebd7903b8f59e130e
parentccab6cb8d77858213d9010f62447fd7f2119d45e
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