Skip to content
Commit 959a35f1 authored by Jeff Moyer's avatar Jeff Moyer Committed by Jens Axboe
Browse files

blk-mq: fix dereference of rq->mq_ctx if allocation fails



If __GFP_WAIT isn't set and we fail allocating, when we go
to drop the reference on the ctx, we will attempt to dereference
the NULL rq. Fix that.

Signed-off-by: default avatarJeff Moyer <jmoyer@redhat.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent e345d767
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment