From: Oleg Nesterov Date: Tue, 23 Oct 2007 13:08:21 +0000 (+0200) Subject: cfq_get_queue: fix possible NULL pointer access X-Git-Tag: v2.6.24-rc2~103^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0a0836a09ca7a27341703ef154c82e2e7f3e96f4;p=pandora-kernel.git 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 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 --- Reading git-diff-tree failed