Re: [PATCH] memstick: fix a double-free bug in memstick_check

2020-11-23 Thread Ulf Hansson
On Fri, 20 Nov 2020 at 08:44, Qinglang Miao wrote: > > kfree(host->card) has been called in put_device so that > another kfree would raise cause a double-free bug. > > Fixes: 0193383a5833 ("memstick: core: fix device_register() error handling") > Reported-by: Hulk Robot > Signed-off-by: Qinglang

[PATCH] memstick: fix a double-free bug in memstick_check

2020-11-19 Thread Qinglang Miao
kfree(host->card) has been called in put_device so that another kfree would raise cause a double-free bug. Fixes: 0193383a5833 ("memstick: core: fix device_register() error handling") Reported-by: Hulk Robot Signed-off-by: Qinglang Miao --- drivers/memstick/core/memstick.c | 1 - 1 file changed