]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: fix a panic on UP machines in reqsk_fastopen_remove
authorEric Dumazet <edumazet@google.com>
Sun, 13 Jan 2013 18:21:51 +0000 (18:21 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Jan 2013 23:10:05 +0000 (18:10 -0500)
commit173b4ee25d9763e3018693e1103cb99b3150fd05
treee16ce5d07f76eab02bfdc424f521dd14d50a25e9
parent481f33418ebb046e090bc4e684adae9f6d00da33
tcp: fix a panic on UP machines in reqsk_fastopen_remove

spin_is_locked() on a non !SMP build is kind of useless.

BUG_ON(!spin_is_locked(xx)) is guaranteed to crash.

Just remove this check in reqsk_fastopen_remove() as
the callers do hold the socket lock.

Reported-by: Ketan Kulkarni <ketkulka@gmail.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Jerry Chu <hkchu@google.com>
Cc: Yuchung Cheng <ycheng@google.com>
Cc: Dave Taht <dave.taht@gmail.com>
Acked-by: H.K. Jerry Chu <hkchu@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/request_sock.c