]> git.baikalelectronics.ru Git - kernel.git/commit
net: caif: fix double disconnect client in chnl_net_open()
authorZhengchao Shao <shaozhengchao@huawei.com>
Fri, 11 Nov 2022 01:47:34 +0000 (09:47 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 Nov 2022 16:42:15 +0000 (17:42 +0100)
commit90162497cadb2378e8c3db035b5939329c5c880a
tree00118c207db78d0f20de5f6c52864b26f0ebfd45
parentafc374738161906b112c72479754a3273a8c3d3a
net: caif: fix double disconnect client in chnl_net_open()

[ Upstream commit cba0c752cc53cd8dccd319134b03fdfe1ef97b12 ]

When connecting to client timeout, disconnect client for twice in
chnl_net_open(). Remove one. Compile tested only.

Fixes: 29db29f3a202 ("caif: Use link layer MTU instead of fixed MTU")
Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/caif/chnl_net.c