]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
ext4: add missing error check in __ext4_new_inode()
authorTheodore Ts'o <tytso@mit.edu>
Mon, 11 Dec 2017 04:44:11 +0000 (23:44 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 11 Dec 2017 04:44:11 +0000 (23:44 -0500)
commit996fc4477a0ea28226b30d175f053fb6f9a4fa36
tree7c3c421850f99a68331c6a5a0b292b38650cfb29
parentc894aa97577e47d3066b27b32499ecf899bfa8b0
ext4: add missing error check in __ext4_new_inode()

It's possible for ext4_get_acl() to return an ERR_PTR.  So we need to
add a check for this case in __ext4_new_inode().  Otherwise on an
error we can end up oops the kernel.

This was getting triggered by xfstests generic/388, which is a test
which exercises the shutdown code path.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@vger.kernel.org
fs/ext4/ialloc.c