mirror of
https://github.com/linux-msm/laptops-kernel.git
synced 2026-08-13 14:19:53 -07:00
ntfs: Add missing error code
If ntfs_attr_iget() fails no error code is assigned to be returned. Detected by Smatch: fs/ntfs/attrib.c:2665 ntfs_attr_add() warn: missing error code 'err' Signed-off-by: Ethan Tidmore <ethantidmore06@gmail.com> Reviewed-by: Hyunchul Lee <hyc.lee@gmail.com> Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
This commit is contained in:
committed by
Namjae Jeon
parent
c418e96754
commit
1c85157ea8
@@ -2661,6 +2661,7 @@ add_non_resident:
|
||||
/* Open new attribute and resize it. */
|
||||
attr_vi = ntfs_attr_iget(VFS_I(ni), type, name, name_len);
|
||||
if (IS_ERR(attr_vi)) {
|
||||
err = PTR_ERR(attr_vi);
|
||||
ntfs_error(sb, "Failed to open just added attribute");
|
||||
goto rm_attr_err_out;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user