diff options
author | Zhihao Cheng <chengzhihao1@huawei.com> | 2021-12-27 06:22:42 +0300 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2022-01-11 01:09:08 +0300 |
commit | c3c07fc25f37c157fde041b3a0c3dfcb1590cbce (patch) | |
tree | 6d847f606237b5dce6fd82ad9aaa4233e2c1b20a /drivers/scsi/3w-9xxx.c | |
parent | 3b67db8a6ca83e6ff90b756d3da0c966f61cd37b (diff) | |
download | linux-c3c07fc25f37c157fde041b3a0c3dfcb1590cbce.tar.xz |
ubi: fastmap: Return error code if memory allocation fails in add_aeb()
Abort fastmap scanning and return error code if memory allocation fails
in add_aeb(). Otherwise ubi will get wrong peb statistics information
after scanning.
Fixes: dbb7d2a88d2a7b ("UBI: Add fastmap core")
Signed-off-by: Zhihao Cheng <chengzhihao1@huawei.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'drivers/scsi/3w-9xxx.c')
0 files changed, 0 insertions, 0 deletions