diff mbox

grace: replace BUG_ON on WARN_ON in grace_exit_net()

Message ID 18234b43-c052-0243-a3f2-277a1bfaa66e@virtuozzo.com (mailing list archive)
State New, archived
Headers show

Commit Message

Vasily Averin Nov. 2, 2017, 3:36 p.m. UTC
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 mbox

Patch

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 = {