All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] grace: replace BUG_ON on WARN_ON in grace_exit_net()
@ 2017-11-02 15:36 Vasily Averin
  0 siblings, 0 replies; only message in thread
From: Vasily Averin @ 2017-11-02 15:36 UTC (permalink / raw)
  To: linux-nfs, Jeff Layton, J. Bruce Fields

use WARN_ON instead of BUG_ON to prevent dispensable kernel crash

Signed-off-by: Vasily Averin <vvs@virtuozzo.com>
---
 fs/nfs_common/grace.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/nfs_common/grace.c b/fs/nfs_common/grace.c
index 420d3a0..77226e6 100644
--- a/fs/nfs_common/grace.c
+++ b/fs/nfs_common/grace.c
@@ -104,7 +104,7 @@ grace_exit_net(struct net *net)
 {
 	struct list_head *grace_list = net_generic(net, grace_net_id);
 
-	BUG_ON(!list_empty(grace_list));
+	WARN_ON(!list_empty(grace_list));
 }
 
 static struct pernet_operations grace_net_ops = {
-- 
2.7.4


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2017-11-02 15:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-02 15:36 [PATCH] grace: replace BUG_ON on WARN_ON in grace_exit_net() Vasily Averin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.