diff --git a/fs/ceph/caps.c b/fs/ceph/caps.c index e3b848d7698de2dd65b2a69490937500d4394599..30acc7b046eeb0a5f0afb035148cb5ae7d524c23 100644 --- a/fs/ceph/caps.c +++ b/fs/ceph/caps.c @@ -586,6 +586,7 @@ int ceph_add_cap(struct inode *inode, } else { pr_err("ceph_add_cap: couldn't find snap realm %llx\n", realmino); + WARN_ON(!realm); } }