diff options
-rw-r--r-- | net/sctp/socket.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/sctp/socket.c b/net/sctp/socket.c index ca12aa346c0d..6cbe5bdf2b15 100644 --- a/net/sctp/socket.c +++ b/net/sctp/socket.c | |||
@@ -7427,7 +7427,8 @@ static int sctp_wait_for_sndbuf(struct sctp_association *asoc, long *timeo_p, | |||
7427 | */ | 7427 | */ |
7428 | release_sock(sk); | 7428 | release_sock(sk); |
7429 | current_timeo = schedule_timeout(current_timeo); | 7429 | current_timeo = schedule_timeout(current_timeo); |
7430 | BUG_ON(sk != asoc->base.sk); | 7430 | if (sk != asoc->base.sk) |
7431 | goto do_error; | ||
7431 | lock_sock(sk); | 7432 | lock_sock(sk); |
7432 | 7433 | ||
7433 | *timeo_p = current_timeo; | 7434 | *timeo_p = current_timeo; |