]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
SUNRPC: remove BUG_ON in rpc_put_sb_net
authorWeston Andros Adamson <dros@netapp.com>
Tue, 23 Oct 2012 14:43:37 +0000 (10:43 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 1 Nov 2012 16:02:14 +0000 (12:02 -0400)
Replace BUG_ON() with WARN_ON() - the condition is definitely a misuse
of the API, but shouldn't cause a crash.

Signed-off-by: Weston Andros Adamson <dros@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
net/sunrpc/rpc_pipe.c

index 80f5dd23417d92c932be96225b8c65723774aa40..3128a1503d8e1da1f5682793f5ceee7f578e90a6 100644 (file)
@@ -1093,7 +1093,7 @@ void rpc_put_sb_net(const struct net *net)
 {
        struct sunrpc_net *sn = net_generic(net, sunrpc_net_id);
 
-       BUG_ON(sn->pipefs_sb == NULL);
+       WARN_ON(sn->pipefs_sb == NULL);
        mutex_unlock(&sn->pipefs_sb_lock);
 }
 EXPORT_SYMBOL_GPL(rpc_put_sb_net);