fs/ntfs3: Fix NULL pointer dereference on error in attr_allocate_frame()
[ Upstream commit 9c689c8dc86f8ca99bf91c05f24c8bab38fe7d5f ] Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
c8cbae3cbb
commit
3bff4bb7f9
1 changed files with 2 additions and 4 deletions
|
|
@ -1658,10 +1658,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
Add a link
Reference in a new issue