Skip to content
Commit 0a0836a0 authored by Oleg Nesterov's avatar Oleg Nesterov Committed by Jens Axboe
Browse files

cfq_get_queue: fix possible NULL pointer access



cfq_get_queue()->cfq_find_alloc_queue() can fail, check the returned value.

Signed-off-by: default avatarOleg Nesterov <oleg@tv-sign.ru>

Note that this isn't a bug at the moment, since the regular IO path
does not call this path without __GFP_WAIT set. However, it could be a
future bug, so I've applied it.

Signed-off-by: default avatarJens Axboe <jens.axboe@oracle.com>
parent abbeb88d
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