diff options
Diffstat (limited to 'fs/overlayfs/super.c')
-rw-r--r-- | fs/overlayfs/super.c | 3 |
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) | |||
174 | { | 174 | { |
175 | struct ovl_inode *oi = kmem_cache_alloc(ovl_inode_cachep, GFP_KERNEL); | 175 | struct ovl_inode *oi = kmem_cache_alloc(ovl_inode_cachep, GFP_KERNEL); |
176 | 176 | ||
177 | if (!oi) | ||
178 | return NULL; | ||
179 | |||
177 | oi->cache = NULL; | 180 | oi->cache = NULL; |
178 | oi->redirect = NULL; | 181 | oi->redirect = NULL; |
179 | oi->version = 0; | 182 | oi->version = 0; |