From: Jens Axboe Date: Fri, 19 Sep 2014 14:04:53 +0000 (-0600) Subject: blk-mq: fix potential oops on out-of-memory in __blk_mq_alloc_rq_maps() X-Git-Tag: fixes-for-v3.18-merge-window~80^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b55e1f2d0a5e462e52678278ab749468f1db81c;p=pandora-kernel.git blk-mq: fix potential oops on out-of-memory in __blk_mq_alloc_rq_maps() __blk_mq_alloc_rq_maps() can be invoked multiple times, if we scale back the queue depth if we are low on memory. So don't clear set->tags when we fail, this is handled directly in the parent function, blk_mq_alloc_tag_set(). Reported-by: Robert Elliott Signed-off-by: Jens Axboe --- Reading git-diff-tree failed