]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
sdp: BUG1282 - ref count not taken during sdp_shutdown
authorAmir Vadai <amirv@mellanox.co.il>
Sun, 19 Oct 2008 15:01:33 +0000 (17:01 +0200)
committerMukesh Kacker <mukesh.kacker@oracle.com>
Tue, 6 Oct 2015 12:04:18 +0000 (05:04 -0700)
Signed-off-by: Amir Vadai <amirv@mellanox.co.il>
drivers/infiniband/ulp/sdp/sdp_main.c

index 1673c73cfb5d7461e17ca27220ab9320c8155813..e8fb8d37dc1e6dcf920ec2d987c19642584d6491 100644 (file)
@@ -915,6 +915,8 @@ static void sdp_shutdown(struct sock *sk, int how)
        if (!sdp_close_state(sk))
            return;
 
+       sock_hold(sk);
+
        /*
         * Just turn off CORK here.
         *   We could check for socket shutting down in main data path,