summaryrefslogtreecommitdiff
path: root/drivers/lightnvm
diff options
context:
space:
mode:
authorPan Bian <bianpan2016@163.com>2019-04-17 11:28:37 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-01-27 16:46:32 +0300
commitacab21ffa8c0951f2180f80184c921fa4799c786 (patch)
tree5f250caaaf3beccbcc0b7149a8701541751ebf4c /drivers/lightnvm
parent5131126c746631b34fcd001594b4c1c73dbc425a (diff)
downloadlinux-acab21ffa8c0951f2180f80184c921fa4799c786.tar.xz
mmc: core: fix possible use after free of host
[ Upstream commit 8e1943af2986db42bee2b8dddf49a36cdb2e9219 ] In the function mmc_alloc_host, the function put_device is called to release allocated resources when mmc_gpio_alloc fails. Finally, the function pointed by host->class_dev.class->dev_release (i.e., mmc_host_classdev_release) is used to release resources including the host structure. However, after put_device, host is used and released again. Resulting in a use-after-free bug. Fixes: 1ed217194488 ("mmc: core: fix error path in mmc_host_alloc") Signed-off-by: Pan Bian <bianpan2016@163.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/lightnvm')
0 files changed, 0 insertions, 0 deletions