diff options
author | Ming Lin <[email protected]> | 2016-05-25 23:23:27 -0700 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2016-05-26 08:51:43 -0600 |
commit | c7de5726307620711a4753b2a13d9e5daecc1081 (patch) | |
tree | cbc8b1c52c7afc1e6f77490956b514aab95f1a2e /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | 4d1034eb7c2f5e32d48ddc4dfce0f1a723d28667 (diff) |
blk-mq: clear q->mq_ops if init fail
blk_mq_init_queue() calls blk_mq_init_allocated_queue(), but q->mq_ops
was not cleared when blk_mq_init_allocated_queue() fails.
Then blk_cleanup_queue() calls blk_mq_free_queue() which will crash because:
- q->all_q_node is not added to all_q_list yet
- q->tag_set is NULL
- hctx was not setup yet or already freed
Fixed it by clearing q->mq_ops on error path.
Signed-off-by: Ming Lin <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions