Mike Krinkin 21974061cf null_blk: fix use-after-free problem
end_cmd finishes request associated with nullb_cmd struct, so we
should save pointer to request_queue in a local variable before
calling end_cmd.

The problem was causes general protection fault with slab poisoning
enabled.

Fixes: 8b70f45e2eb2 ("null_blk: restart request processing on completion handler")
Tested-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Mike Krinkin <krinkin.m.u@gmail.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
2015-07-22 13:30:20 -06:00
..
2015-07-17 16:39:53 -07:00
2015-07-17 16:39:53 -07:00
2015-07-08 15:14:13 +08:00
2015-07-17 16:39:53 -07:00
2015-07-01 14:44:22 -07:00
2015-07-17 16:39:53 -07:00
2015-07-10 12:16:59 -07:00
2015-07-17 16:39:53 -07:00
2015-07-01 19:40:18 -07:00
2015-07-19 14:18:00 -07:00
2015-07-02 14:40:49 -07:00
2015-07-02 14:40:49 -07:00
2015-07-03 16:02:25 -07:00