]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - net/rxrpc/af_rxrpc.c
net: convert BUG_TRAP to generic WARN_ON
[net-next-2.6.git] / net / rxrpc / af_rxrpc.c
index 4b2682feeedcbcf61d2b1e9fb729ad9cfff9abc1..32e489118bebcc7462316456cf9a4e8dffeaae31 100644 (file)
@@ -660,9 +660,9 @@ static void rxrpc_sock_destructor(struct sock *sk)
 
        rxrpc_purge_queue(&sk->sk_receive_queue);
 
-       BUG_TRAP(!atomic_read(&sk->sk_wmem_alloc));
-       BUG_TRAP(sk_unhashed(sk));
-       BUG_TRAP(!sk->sk_socket);
+       WARN_ON(atomic_read(&sk->sk_wmem_alloc));
+       WARN_ON(!sk_unhashed(sk));
+       WARN_ON(sk->sk_socket);
 
        if (!sock_flag(sk, SOCK_DEAD)) {
                printk("Attempt to release alive rxrpc socket: %p\n", sk);