summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorAdrian Hunter <adrian.hunter@intel.com>2016-08-25 14:11:43 -0600
committerJens Axboe <axboe@fb.com>2016-08-25 14:11:43 -0600
commit869c554808ccf7ddd25be5317073b88ceddb8507 (patch)
treeed7f5a2112a7d00dbfa02415585bc7d1991fe824 /kernel
parentf2791e7eadf437633f30faa51b30878cf15650be (diff)
downloadblackbird-op-linux-869c554808ccf7ddd25be5317073b88ceddb8507.tar.gz
blackbird-op-linux-869c554808ccf7ddd25be5317073b88ceddb8507.zip
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: Hans de Goede <hdegoede@redhat.com> Tested-by: Hans de Goede <hdegoede@redhat.com> Fixes: c2df40dfb8c0 ("drivers: use req op accessor") Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud