mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-18 11:57:03 +07:00
inet: remove BUG_ON() in twsk_destructor()
Kernel will crash the same if one of the pointer is NULL anyway. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
8b58a39846
commit
3fd2f1b9d9
@ -33,9 +33,6 @@ static inline int twsk_unique(struct sock *sk, struct sock *sktw, void *twp)
|
||||
|
||||
static inline void twsk_destructor(struct sock *sk)
|
||||
{
|
||||
BUG_ON(sk == NULL);
|
||||
BUG_ON(sk->sk_prot == NULL);
|
||||
BUG_ON(sk->sk_prot->twsk_prot == NULL);
|
||||
if (sk->sk_prot->twsk_prot->twsk_destructor != NULL)
|
||||
sk->sk_prot->twsk_prot->twsk_destructor(sk);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user