]> git.baikalelectronics.ru Git - kernel.git/commit
fs/ntfs3: add checks for allocation failure
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 24 Aug 2021 11:52:36 +0000 (14:52 +0300)
committerKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Fri, 27 Aug 2021 14:05:13 +0000 (17:05 +0300)
commit411c01a62e7aa373c3c4e6cd9d8d30f254c2eacc
tree144249b4aa9cc6499c0c107204d9d60344be7fd9
parentb22a51e48359491eba4a4a2b0f1c1ee1fe938e0a
fs/ntfs3: add checks for allocation failure

Add a check for when the kzalloc() in init_rsttbl() fails.  Some of
the callers checked for NULL and some did not.  I went down the call
tree and added NULL checks where ever they were missing.

Fixes: c4fb1531c048 ("fs/ntfs3: Add NTFS journal")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Kari Argillander <kari.argillander@gmail.com>
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
fs/ntfs3/fslog.c