Commit 0f36ca6b authored by Johan Hovold's avatar Johan Hovold Committed by Zheng Zengkai
Browse files

net: cdc-phonet: fix data-interface release on probe failure



stable inclusion
from stable-5.10.27
commit 421e0d731070fb497212ba929df3623cfce4561d
bugzilla: 51493

--------------------------------

[ Upstream commit c79a7070 ]

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: 87cf6560 ("USB host CDC Phonet network interface driver")
Signed-off-by: default avatarJohan Hovold <johan@kernel.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarChen Jun <chenjun102@huawei.com>
Acked-by: default avatar  Weilong Chen <chenweilong@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent a11f1d2a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment