linux-stable/drivers/memstick
Jiasheng Jiang 7fecca429e 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:14:17 +01:00
..
core memstick/ms_block: Add check for alloc_ordered_workqueue 2022-12-31 13:14:17 +01:00
host memstick: jmb38x_ms: use appropriate free function in jmb38x_ms_alloc_host() 2021-11-18 19:16:32 +01:00
Kconfig
Makefile