linux/drivers/memstick/core
Qinglang Miao 64a622c7bb memstick: fix a double-free bug in memstick_check
[ Upstream commit e3e9ced5c9 ]

kfree(host->card) has been called in put_device so that
another kfree would raise cause a double-free bug.

Fixes: 0193383a58 ("memstick: core: fix device_register() error handling")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Qinglang Miao <miaoqinglang@huawei.com>
Link: https://lore.kernel.org/r/20201120074846.31322-1-miaoqinglang@huawei.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-12-30 11:25:56 +01:00
..
Kconfig
Makefile
memstick.c memstick: fix a double-free bug in memstick_check 2020-12-30 11:25:56 +01:00
ms_block.c treewide: kmalloc() -> kmalloc_array() 2018-06-12 16:19:22 -07:00
ms_block.h
mspro_block.c memstick: remove unused variables 2018-05-14 08:31:06 -06:00