commit | 7498e99fc51ca60b960ef79061e0e7b521feb07e | [log] [tgz] |
---|---|---|
author | Matias Bjørling <m@bjorling.me> | Mon Nov 28 22:38:52 2016 +0100 |
committer | Jens Axboe <axboe@fb.com> | Tue Nov 29 12:12:51 2016 -0700 |
tree | 07dc0f5c5f242347676262b3287869784a4f85ac | |
parent | 415d3dab964c1a9bc6ceb8941bd4dbe4fbe36a09 [diff] |
nvme: lightnvm: frees wrong cmd structure When struct nvme_request was introduced, the nvme_nvm_submit_io was converted to the new interface. The interface moves nvme_nvm_command data structure into the struct request pdu. On io completion, rq->cmd is freed, which should have been the dereferenced pdu nvme_request->cmd. Fixes: d49187e97e94 "nvme: introduce struct nvme_request" Signed-off-by: Matias Bjørling <m@bjorling.me> Signed-off-by: Jens Axboe <axboe@fb.com>