erofs: fix an error code in z_erofs_init_zip_subsystem()
authorDan Carpenter <error27@gmail.com>
Thu, 16 Feb 2023 12:13:04 +0000 (15:13 +0300)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Thu, 16 Feb 2023 14:51:53 +0000 (22:51 +0800)
commit8d1b80a79452630f157bf634ae9cfcd9f4eed161
treebc9c33ccf5e6a32cc894fcfd4affa60af63d057b
parent61fef98945d0b2fea522ef958f57a783e2a072a9
erofs: fix an error code in z_erofs_init_zip_subsystem()

Return -ENOMEM if alloc_workqueue() fails.  Don't return success.

Fixes: d8a650adf429 ("erofs: add per-cpu threads for decompression as an option")
Signed-off-by: Dan Carpenter <error27@gmail.com>
Reviewed-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Link: https://lore.kernel.org/r/Y+4d0FRsUq8jPoOu@kili
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
fs/erofs/zdata.c