mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
fs/ntfs3: Fix NULL pointer dereference on error in attr_allocate_frame()
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
This commit is contained in:
parent
32e9212256
commit
9c689c8dc8
1 changed files with 2 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue