commit | 996fc4477a0ea28226b30d175f053fb6f9a4fa36 | [log] [tgz] |
---|---|---|
author | Theodore Ts'o <tytso@mit.edu> | Sun Dec 10 23:44:11 2017 -0500 |
committer | Theodore Ts'o <tytso@mit.edu> | Sun Dec 10 23:44:11 2017 -0500 |
tree | 7c3c421850f99a68331c6a5a0b292b38650cfb29 | |
parent | c894aa97577e47d3066b27b32499ecf899bfa8b0 [diff] |
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