diff options
author | Adrian Hunter <adrian.hunter@intel.com> | 2016-08-25 14:11:43 -0600 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2016-08-25 14:11:43 -0600 |
commit | 869c554808ccf7ddd25be5317073b88ceddb8507 (patch) | |
tree | ed7f5a2112a7d00dbfa02415585bc7d1991fe824 /drivers/md/dm-cache-block-types.h | |
parent | f2791e7eadf437633f30faa51b30878cf15650be (diff) |
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 'drivers/md/dm-cache-block-types.h')
0 files changed, 0 insertions, 0 deletions