commit | 959a35f13eb785f982d79b1aaa75872d05c821da | [log] [tgz] |
---|---|---|
author | Jeff Moyer <jmoyer@redhat.com> | Tue Dec 03 14:23:00 2013 -0700 |
committer | Jens Axboe <axboe@kernel.dk> | Tue Dec 03 14:24:28 2013 -0700 |
tree | cf6d053aee1a645f5ec9fc8e81d5f153b5a8692d | |
parent | e345d767f6530ec9cb0aabab7ea248072a9c6975 [diff] |
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: Jeff Moyer <jmoyer@redhat.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>