Skip to content
Commit 202500d2 authored by Peng Hao's avatar Peng Hao Committed by Ulf Hansson
Browse files

mmc: block: Fix use-after-free issue for rpmb



The data structure member “rpmb->md” was passed to a call of the function
“mmc_blk_put” after a call of the function “put_device”. Reorder these
function calls to keep the data accesses consistent.

Fixes: 1c87f735 ("mmc: block: Fix bug when removing RPMB chardev ")
Signed-off-by: default avatarPeng Hao <richard.peng@oppo.com>
Cc: stable@vger.kernel.org
[Uffe: Fixed up mangled patch and updated commit message]
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent 2b17b8d7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment