Skip to content
Commit 869c5548 authored by Adrian Hunter's avatar Adrian Hunter Committed by Jens Axboe
Browse files

mmc: fix use-after-free of struct request



We call mmc_req_is_special() after having processed a request, but
it could be freed after that. Check that ahead of time, and use
the cached value.

Reported-by: default avatarHans de Goede <hdegoede@redhat.com>
Tested-by: default avatarHans de Goede <hdegoede@redhat.com>
Fixes: c2df40df ("drivers: use req op accessor")

Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent f2791e7e
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