mirror-linux/drivers/memstick/core
Jiasheng Jiang 1b3f0b0248 memstick/ms_block: Add check for alloc_ordered_workqueue
[ Upstream commit 4f431a047a ]

As the alloc_ordered_workqueue may return NULL pointer, it should be better
to add check for the return value. Moreover, the msb->io_queue should be
freed if error occurs later.

Fixes: 0ab30494bc ("memstick: add support for legacy memorysticks")
Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Link: https://lore.kernel.org/r/20221126012558.34374-1-jiasheng@iscas.ac.cn
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-12-31 13:32:25 +01:00
..
Kconfig memstick: Fix Kconfig indentation 2019-11-21 12:25:59 +01:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
memstick.c bus: Make remove callback return void 2021-07-21 11:53:42 +02:00
ms_block.c memstick/ms_block: Add check for alloc_ordered_workqueue 2022-12-31 13:32:25 +01:00
ms_block.h memstick/ms_block: simplify refcounting 2022-02-16 19:44:24 -07:00
mspro_block.c block: remove blk_cleanup_disk 2022-06-28 06:33:15 -06:00