aboutsummaryrefslogtreecommitdiffstats
path: root/fs/overlayfs/super.c
diff options
context:
space:
mode:
authorIngo Molnar <[email protected]>2017-11-10 07:21:08 +0000
committerIngo Molnar <[email protected]>2017-11-10 07:21:08 +0000
commitb5cd3b51e247473e290be5cd09e77171e466cd89 (patch)
treeac8c87e1b38f61a4c879c574dc9373db41f3df01 /fs/overlayfs/super.c
parentx86/platform/UV: Convert timers to use timer_setup() (diff)
parentMerge branch 'akpm' (patches from Andrew) (diff)
downloadkernel-b5cd3b51e247473e290be5cd09e77171e466cd89.tar.gz
kernel-b5cd3b51e247473e290be5cd09e77171e466cd89.zip
Merge branch 'linus' into x86/platform, to refresh the branch
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'fs/overlayfs/super.c')
-rw-r--r--fs/overlayfs/super.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/overlayfs/super.c b/fs/overlayfs/super.c
index 092d150643c1..f5738e96a052 100644
--- a/fs/overlayfs/super.c
+++ b/fs/overlayfs/super.c
@@ -174,6 +174,9 @@ static struct inode *ovl_alloc_inode(struct super_block *sb)
{
struct ovl_inode *oi = kmem_cache_alloc(ovl_inode_cachep, GFP_KERNEL);
+ if (!oi)
+ return NULL;
+
oi->cache = NULL;
oi->redirect = NULL;
oi->version = 0;