diff mbox series

[net] net: caif: fix double disconnect client in chnl_net_open()

Message ID 20221111014734.337200-1-shaozhengchao@huawei.com (mailing list archive)
State Accepted
Commit 8fbb53c8bfd8c56ecf1f78dc821778b58f505503
Delegated to: Netdev Maintainers
Headers show
Series [net] net: caif: fix double disconnect client in chnl_net_open() | expand

Checks

Context Check Description
netdev/tree_selection success Clearly marked for net
netdev/fixes_present success Fixes tag present in non-next series
netdev/subject_prefix success Link
netdev/cover_letter success Single patches do not need cover letters
netdev/patch_count success Link
netdev/header_inline success No static functions without inline keyword in header files
netdev/build_32bit success Errors and warnings before: 0 this patch: 0
netdev/cc_maintainers success CCed 8 of 8 maintainers
netdev/build_clang success Errors and warnings before: 0 this patch: 0
netdev/module_param success Was 0 now: 0
netdev/verify_signedoff success Signed-off-by tag matches author and committer
netdev/check_selftest success No net selftest shell script
netdev/verify_fixes success Fixes tag looks correct
netdev/build_allmodconfig_warn success Errors and warnings before: 0 this patch: 0
netdev/checkpatch success total: 0 errors, 0 warnings, 0 checks, 9 lines checked
netdev/kdoc success Errors and warnings before: 0 this patch: 0
netdev/source_inline success Was 0 now: 0

Commit Message

shaozhengchao Nov. 11, 2022, 1:47 a.m. UTC
When connecting to client timeout, disconnect client for twice in
chnl_net_open(). Remove one. Compile tested only.

Fixes: 2aa40aef9deb ("caif: Use link layer MTU instead of fixed MTU")
Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com>
---
 net/caif/chnl_net.c | 3 ---
 1 file changed, 3 deletions(-)

Comments

patchwork-bot+netdevbpf@kernel.org Nov. 14, 2022, 11 a.m. UTC | #1
Hello:

This patch was applied to netdev/net.git (master)
by David S. Miller <davem@davemloft.net>:

On Fri, 11 Nov 2022 09:47:34 +0800 you wrote:
> When connecting to client timeout, disconnect client for twice in
> chnl_net_open(). Remove one. Compile tested only.
> 
> Fixes: 2aa40aef9deb ("caif: Use link layer MTU instead of fixed MTU")
> Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com>
> ---
>  net/caif/chnl_net.c | 3 ---
>  1 file changed, 3 deletions(-)

Here is the summary with links:
  - [net] net: caif: fix double disconnect client in chnl_net_open()
    https://git.kernel.org/netdev/net/c/8fbb53c8bfd8

You are awesome, thank you!
diff mbox series

Patch

diff --git a/net/caif/chnl_net.c b/net/caif/chnl_net.c
index 4d63ef13a1fd..f35fc87c453a 100644
--- a/net/caif/chnl_net.c
+++ b/net/caif/chnl_net.c
@@ -310,9 +310,6 @@  static int chnl_net_open(struct net_device *dev)
 
 	if (result == 0) {
 		pr_debug("connect timeout\n");
-		caif_disconnect_client(dev_net(dev), &priv->chnl);
-		priv->state = CAIF_DISCONNECTED;
-		pr_debug("state disconnected\n");
 		result = -ETIMEDOUT;
 		goto error;
 	}