fs/ntfs3: Fix attr_punch_hole() null pointer derenference
The bug occours due to a misuse of `attr` variable instead of `attr_b`. `attr` is being initialized as NULL, then being derenfernced as `attr->res.data_size`. This bug causes a crash of the ntfs3 driver itself, If compiled directly to the kernel, it crashes the whole system. Signed-off-by: NAlon Zahavi <zahavi.alon@gmail.com> Co-developed-by: NTal Lossos <tallossos@gmail.com> Signed-off-by: NTal Lossos <tallossos@gmail.com> Signed-off-by: NKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Showing
想要评论请 注册 或 登录