From: Zhengchao Shao Date: Fri, 11 Nov 2022 01:47:34 +0000 (+0800) Subject: net: caif: fix double disconnect client in chnl_net_open() X-Git-Tag: v6.6.17~6176^2~22 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8fbb53c8bfd8c56ecf1f78dc821778b58f505503;p=platform%2Fkernel%2Flinux-rpi.git net: caif: fix double disconnect client in chnl_net_open() 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 Signed-off-by: David S. Miller --- diff --git a/net/caif/chnl_net.c b/net/caif/chnl_net.c index 4d63ef1..f35fc87 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; }