]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
cfq_get_queue: fix possible NULL pointer access
authorOleg Nesterov <oleg@tv-sign.ru>
Tue, 23 Oct 2007 13:08:21 +0000 (15:08 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Mon, 29 Oct 2007 10:33:05 +0000 (11:33 +0100)
commit0a0836a09ca7a27341703ef154c82e2e7f3e96f4
treed4fb7c2a848e7160945405dd3d1bdcf9ae6efd33
parentabbeb88d00bef294ce661a9229c1dc31be064545
cfq_get_queue: fix possible NULL pointer access

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

Signed-off-by: Oleg 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: Jens Axboe <jens.axboe@oracle.com>
block/cfq-iosched.c