block: null_blk: fix use after free
authorMing Lei <tom.leiming@gmail.com>
Thu, 1 May 2014 07:12:36 +0000 (15:12 +0800)
committerJens Axboe <axboe@fb.com>
Thu, 1 May 2014 15:17:41 +0000 (09:17 -0600)
entry(cmd->ll_list) may belong to new request once end_cmd()
returns, so fix the bug with the patch.

Without the change, it is easy to observe oops when
doing null_blk(timer) test.

Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Signed-off-by: Jens Axboe <axboe@fb.com>

No differences found