diff options
author | Theodore Ts'o <tytso@mit.edu> | 2017-12-10 23:44:11 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2017-12-10 23:44:11 -0500 |
commit | 996fc4477a0ea28226b30d175f053fb6f9a4fa36 (patch) | |
tree | 7c3c421850f99a68331c6a5a0b292b38650cfb29 /fs/fs_pin.c | |
parent | c894aa97577e47d3066b27b32499ecf899bfa8b0 (diff) | |
download | linux-996fc4477a0ea28226b30d175f053fb6f9a4fa36.tar.gz linux-996fc4477a0ea28226b30d175f053fb6f9a4fa36.tar.bz2 linux-996fc4477a0ea28226b30d175f053fb6f9a4fa36.zip |
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
Diffstat (limited to 'fs/fs_pin.c')
0 files changed, 0 insertions, 0 deletions