fs/ntfs3: Add check for kmemdup

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: b46acd6a6a ("fs/ntfs3: Add NTFS journal")
Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
This commit is contained in:
Jiasheng Jiang 2022-11-23 16:48:46 +08:00 • committed by Konstantin Komarov
commit e6c3cef24c
No known key found for this signature in database
GPG key ID: A9B0331F832407B6