linux-stable/drivers/mtd/ubi
Wei Yongjun 8626c40a30 mtd: ubi: wl: Fix error return code in ubi_wl_init()
commit 7233982ade upstream.

Fix to return error code -ENOMEM from the kmem_cache_alloc() error
handling case instead of 0, as done elsewhere in this function.

Fixes: f78e5623f4 ("ubi: fastmap: Erase outdated anchor PEBs during
attach")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Cc: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-09-19 22:43:48 +02:00
..
attach.c
block.c ubi: Fix error for write access 2018-04-24 09:36:22 +02:00
build.c ubi: fastmap: Cancel work upon detach 2018-07-03 11:24:59 +02:00
cdev.c
debug.c
debug.h
eba.c ubi: fastmap: Correctly handle interrupted erasures in EBA 2018-07-03 11:24:59 +02:00
fastmap-wl.c ubi: fastmap: Don't flush fastmap work on detach 2018-04-24 09:36:22 +02:00
fastmap.c
gluebi.c
io.c
kapi.c
Kconfig
Makefile
misc.c
ubi-media.h
ubi.h
upd.c
vmt.c
vtbl.c
wl.c mtd: ubi: wl: Fix error return code in ubi_wl_init() 2018-09-19 22:43:48 +02:00
wl.h