diff options
author | Wei Yongjun <[email protected]> | 2021-05-19 14:16:57 +0000 |
---|---|---|
committer | Gao Xiang <[email protected]> | 2021-06-08 00:40:18 +0800 |
commit | 0508c1ad0f264a24c4643701823a45f6c9bd8146 (patch) | |
tree | 69d2da45e2e31d994e82d79ae5fa933843afd060 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 614124bea77e452aa6df7a8714e8bc820b489922 (diff) |
erofs: fix error return code in erofs_read_superblock()
'ret' will be overwritten to 0 if erofs_sb_has_sb_chksum() return true,
thus 0 will return in some error handling cases. Fix to return negative
error code -EINVAL instead of 0.
Link: https://lore.kernel.org/r/[email protected]
Fixes: b858a4844cfb ("erofs: support superblock checksum")
Cc: stable <[email protected]> # 5.5+
Reported-by: Hulk Robot <[email protected]>
Signed-off-by: Wei Yongjun <[email protected]>
Reviewed-by: Gao Xiang <[email protected]>
Reviewed-by: Chao Yu <[email protected]>
Signed-off-by: Gao Xiang <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions