From: Sjur Brændeland Date: Sun, 24 Jun 2012 11:01:36 +0000 (+0000) Subject: caif: Clear shutdown mask to zero at reconnect. X-Git-Tag: firefly_0821_release~3680^2~2549^2~15 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=eaa8c5f3cf6555294632c176e81439ca420ad07f;p=firefly-linux-kernel-4.4.55.git caif: Clear shutdown mask to zero at reconnect. Clear caif sockets's shutdown mask at (re)connect. Signed-off-by: Sjur Brændeland Signed-off-by: David S. Miller --- diff --git a/net/caif/caif_socket.c b/net/caif/caif_socket.c index fb8944355264..78f1cdad5b33 100644 --- a/net/caif/caif_socket.c +++ b/net/caif/caif_socket.c @@ -220,6 +220,7 @@ static void caif_ctrl_cb(struct cflayer *layr, cfsk_hold, cfsk_put); cf_sk->sk.sk_state = CAIF_CONNECTED; set_tx_flow_on(cf_sk); + cf_sk->sk.sk_shutdown = 0; cf_sk->sk.sk_state_change(&cf_sk->sk); break;