ubi: Check the presence of volume before call ubi_fastmap_destroy_checkmap()
authorHou Tao <houtao1@huawei.com>
Sat, 30 Nov 2019 09:48:00 +0000 (17:48 +0800)
committerRichard Weinberger <richard@nod.at>
Thu, 16 Jan 2020 22:35:48 +0000 (23:35 +0100)
commit9d6c4742f96cc0380a3f2854d62c667b87736d71
tree962775ce734d04406487aaf35a3cfac356608de7
parent219b0e2cba4ec326f88a08a5c9ad51103089bdab
ubi: Check the presence of volume before call ubi_fastmap_destroy_checkmap()

Else there may be oops when fastmap is enabled and init_volumes() fails.

Signed-off-by: Hou Tao <houtao1@huawei.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
drivers/mtd/ubi/vtbl.c