diff options
author | Jiasheng Jiang <jiasheng@iscas.ac.cn> | 2022-11-23 11:48:46 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-05-11 17:03:33 +0300 |
commit | 7898db22ed6cee909513cf4935b5f9f0298b74f0 (patch) | |
tree | 51a3228e9ce0ec209e3be51f9ceea4d2b9f8be86 /arch/parisc/lib | |
parent | 1bc6bb657dfb0ab3b94ef6d477ca241bf7b6ec06 (diff) | |
download | linux-7898db22ed6cee909513cf4935b5f9f0298b74f0.tar.xz |
fs/ntfs3: Add check for kmemdup
[ Upstream commit e6c3cef24cb0d045f99d5cb039b344874e3cfd74 ]
Since the kmemdup may return NULL pointer,
it should be better to add check for the return value
in order to avoid NULL pointer dereference.
Fixes: b46acd6a6a62 ("fs/ntfs3: Add NTFS journal")
Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'arch/parisc/lib')
0 files changed, 0 insertions, 0 deletions