caif: Clear shutdown mask to zero at reconnect.
authorSjur Brændeland <sjur.brandeland@stericsson.com>
Sun, 24 Jun 2012 11:01:36 +0000 (11:01 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 Jun 2012 23:07:22 +0000 (16:07 -0700)
Clear caif sockets's shutdown mask at (re)connect.

Signed-off-by: Sjur Brændeland <sjur.brandeland@stericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/caif/caif_socket.c

index fb8944355264689b4e61ba9f9402fe8cad902420..78f1cdad5b332b91401570aeccbc12af5bd33d1e 100644 (file)
@@ -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;