ovl: add NULL check in ovl_alloc_inode
authorHirofumi Nakagawa <nklabs@gmail.com>
Mon, 25 Sep 2017 18:09:53 +0000 (03:09 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 Nov 2017 08:54:46 +0000 (09:54 +0100)
commitd22011059462aa003e5825a8180f12db9a980e0c
treec7c691637eeafe45e57849a093938a74f5bf9c87
parent176fab4e08a7a578ff6967a8658fd7429faed58f
ovl: add NULL check in ovl_alloc_inode

commit b3885bd6edb41b91a0e3976469f72ae31bfb8d95 upstream.

This was detected by fault injection test

Signed-off-by: Hirofumi Nakagawa <nklabs@gmail.com>
Fixes: 13cf199d0088 ("ovl: allocate an ovl_inode struct")
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/overlayfs/super.c