projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0db74d9
)
SUNRPC: remove BUG_ON in rpc_put_sb_net
author
Weston Andros Adamson
<dros@netapp.com>
Tue, 23 Oct 2012 14:43:37 +0000
(10:43 -0400)
committer
Trond Myklebust
<Trond.Myklebust@netapp.com>
Sun, 4 Nov 2012 19:43:41 +0000
(14:43 -0500)
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
patch
|
blob
|
blame
|
history
diff --git
a/net/sunrpc/rpc_pipe.c
b/net/sunrpc/rpc_pipe.c
index 80f5dd23417d92c932be96225b8c65723774aa40..3128a1503d8e1da1f5682793f5ceee7f578e90a6 100644
(file)
--- a/
net/sunrpc/rpc_pipe.c
+++ b/
net/sunrpc/rpc_pipe.c
@@
-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);