diff options
author | Konstantin Komarov <almaz.alexandrovich@paragon-software.com> | 2023-09-26 11:28:11 +0300 |
---|---|---|
committer | Konstantin Komarov <almaz.alexandrovich@paragon-software.com> | 2023-09-28 15:04:03 +0300 |
commit | 9c689c8dc86f8ca99bf91c05f24c8bab38fe7d5f (patch) | |
tree | 12534a3657f0924aa4d2d9527aea8061d4d903ed /fs/ntfs3 | |
parent | 32e9212256b88f35466642f9c939bb40cfb2c2de (diff) | |
download | linux-stable-9c689c8dc86f8ca99bf91c05f24c8bab38fe7d5f.tar.gz linux-stable-9c689c8dc86f8ca99bf91c05f24c8bab38fe7d5f.tar.bz2 linux-stable-9c689c8dc86f8ca99bf91c05f24c8bab38fe7d5f.zip |
fs/ntfs3: Fix NULL pointer dereference on error in attr_allocate_frame()
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Diffstat (limited to 'fs/ntfs3')
-rw-r--r-- | fs/ntfs3/attrib.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/ntfs3/attrib.c b/fs/ntfs3/attrib.c index e16487764282..63f70259edc0 100644 --- a/fs/ntfs3/attrib.c +++ b/fs/ntfs3/attrib.c @@ -1736,10 +1736,8 @@ repack: le_b = NULL; attr_b = ni_find_attr(ni, NULL, &le_b, ATTR_DATA, NULL, 0, NULL, &mi_b); - if (!attr_b) { - err = -ENOENT; - goto out; - } + if (!attr_b) + return -ENOENT; attr = attr_b; le = le_b; |