diff options
author | Johan Hovold <johan@kernel.org> | 2021-03-18 18:57:49 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-03-19 05:45:37 +0300 |
commit | c79a707072fe3fea0e3c92edee6ca85c1e53c29f (patch) | |
tree | 79e1393af9cc104c0368c9f47c60ec1fe53049ad /arch/arm/mach-footbridge/Kconfig | |
parent | 84f4aced67b102c2f2631c2a48332fcabc826ed2 (diff) | |
download | linux-c79a707072fe3fea0e3c92edee6ca85c1e53c29f.tar.xz |
net: cdc-phonet: fix data-interface release on probe failure
Set the disconnected flag before releasing the data interface in case
netdev registration fails to avoid having the disconnect callback try to
deregister the never registered netdev (and trigger a WARN_ON()).
Fixes: 87cf65601e17 ("USB host CDC Phonet network interface driver")
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/arm/mach-footbridge/Kconfig')
0 files changed, 0 insertions, 0 deletions