]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
SDP: BUG1402 - kernel panic when sdp_fin arrive in the middle of closing a socket
authorAmir Vadai <amirv@mellanox.co.il>
Thu, 20 Nov 2008 09:34:38 +0000 (11:34 +0200)
committerMukesh Kacker <mukesh.kacker@oracle.com>
Tue, 6 Oct 2015 12:04:20 +0000 (05:04 -0700)
This could happen theoretically so there is no need for the BUG()

Signed-off-by: Amir Vadai <amirv@mellanox.co.il>
drivers/infiniband/ulp/sdp/sdp_bcopy.c

index f1b3cb0b462492998cce8c27f9e292f295635cc0..7dd0d06330a7b73976d449c033166f22ae7c3f1c 100644 (file)
@@ -128,7 +128,7 @@ static void sdp_fin(struct sock *sk)
                        rdma_disconnect(sdp_sk(sk)->id);
                } else {
                        sdp_warn(sk, "%s: sdp_sk(sk)->id is NULL\n", __func__);
-                       BUG();
+                       return;
                }
                break;
        case TCP_TIME_WAIT: