Commit 71004bc8 authored by Liu Yueyue's avatar Liu Yueyue
Browse files

fs/ntfs3: Fixed the error of uninitialized value

driver inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I72XT8


CVE: NA

Reference: N/A

---------------------------------------

Smatch reports:
fs/ntfs3/attrib.c:1338 attr_wof_frame_info() error: uninitialized symbol
'err'.

It is because that in "attr_wof_frame_info", an uninitialized value
would be returned, which may affect the stability of the system.

The solution is to initialize the variable "err" to zero.

Signed-off-by: default avatarLiu Yueyue <u202012053@hust.edu.cn>
parent 23e32a6e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1207,7 +1207,7 @@ int attr_wof_frame_info(struct ntfs_inode *ni, struct ATTRIB *attr,
	u8 bytes_per_off;
	char *addr;
	struct page *page;
	int i, err;
	int i, err = 0;
	__le32 *off32;
	__le64 *off64;