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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment