ovl: add NULL check in ovl_alloc_inode
authorHirofumi Nakagawa <nklabs@gmail.com>
Mon, 25 Sep 2017 18:09:53 +0000 (03:09 +0900)
committerMiklos Szeredi <mszeredi@redhat.com>
Thu, 19 Oct 2017 14:19:51 +0000 (16:19 +0200)
commitb3885bd6edb41b91a0e3976469f72ae31bfb8d95
tree940f4ed3bf9c0bd235caa39178dff14dbdf75dee
parent33d930e59a98fa10a0db9f56c7fa2f21a4aef9b9
ovl: add NULL check in ovl_alloc_inode

This was detected by fault injection test

Signed-off-by: Hirofumi Nakagawa <nklabs@gmail.com>
Fixes: 13cf199d0088 ("ovl: allocate an ovl_inode struct")
Cc: <stable@vger.kernel.org> # v4.13
fs/overlayfs/super.c