diff options
-rw-r--r-- | net/sunrpc/xprt.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/sunrpc/xprt.c b/net/sunrpc/xprt.c index a74a1289113e..2b8789cf8db1 100644 --- a/net/sunrpc/xprt.c +++ b/net/sunrpc/xprt.c | |||
@@ -1101,8 +1101,7 @@ tcp_state_change(struct sock *sk) | |||
1101 | case TCP_SYN_RECV: | 1101 | case TCP_SYN_RECV: |
1102 | break; | 1102 | break; |
1103 | default: | 1103 | default: |
1104 | if (xprt_test_and_clear_connected(xprt)) | 1104 | xprt_disconnect(xprt); |
1105 | rpc_wake_up_status(&xprt->pending, -ENOTCONN); | ||
1106 | break; | 1105 | break; |
1107 | } | 1106 | } |
1108 | out: | 1107 | out: |