diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2019-09-18 08:30:33 +0000 |
---|---|---|
committer | Gao Xiang <gaoxiang25@huawei.com> | 2019-10-01 04:53:50 +0800 |
commit | 517d6b9c6f71bee15c729155445c42cc4ef77dda (patch) | |
tree | ef7fb5c474862c61dc5f0116e3f85f20b4bd4a28 /CREDITS | |
parent | 54ecb8f7028c5eb3d740bb82b0f1d90f2df63c5c (diff) | |
download | linux-stable-517d6b9c6f71bee15c729155445c42cc4ef77dda.tar.gz linux-stable-517d6b9c6f71bee15c729155445c42cc4ef77dda.tar.bz2 linux-stable-517d6b9c6f71bee15c729155445c42cc4ef77dda.zip |
erofs: fix return value check in erofs_read_superblock()
In case of error, the function read_mapping_page() returns
ERR_PTR() not NULL. The NULL test in the return value check
should be replaced with IS_ERR().
Fixes: fe7c2423570d ("erofs: use read_mapping_page instead of sb_bread")
Reviewed-by: Gao Xiang <gaoxiang25@huawei.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Link: https://lore.kernel.org/r/20190918083033.47780-1-weiyongjun1@huawei.com
Signed-off-by: Gao Xiang <gaoxiang25@huawei.com>
Diffstat (limited to 'CREDITS')
0 files changed, 0 insertions, 0 deletions