diff options
author | Qinglang Miao <miaoqinglang@huawei.com> | 2020-11-20 15:48:46 +0800 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2020-11-24 11:26:55 +0100 |
commit | e3e9ced5c93803d5b2ea1942c4bf0192622531d6 (patch) | |
tree | b67b364bbe0a1f7c5d4e37999073dce08eba5bda /tools/perf/scripts/python/stackcollapse.py | |
parent | bf3023e6e863fb4c6607553708392de477d4983b (diff) |
memstick: fix a double-free bug in memstick_check
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 <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>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions