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: b46acd6a ("fs/ntfs3: Add NTFS journal") Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com> Reviewed-by: NKari Argillander <kari.argillander@gmail.com> Signed-off-by: NKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Showing
想要评论请 注册 或 登录