From: Jan Kara Date: Wed, 22 Oct 2014 13:34:21 +0000 (+0200) Subject: null_blk: Cleanup error recovery in null_add_dev() X-Git-Tag: omap-for-v3.19/fixes-not-urgent-part1~40^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=31f9690e6eaf549f3e643f6a8f7dab84fd31997a;p=pandora-kernel.git null_blk: Cleanup error recovery in null_add_dev() When creation of queues fails in init_driver_queues(), we free the queues. But null_add_dev() doesn't test for this failure and continues with the setup leading to strange consequences, likely oops. Fix the problem by testing whether init_driver_queues() failed and do proper error cleanup. Coverity-id: 1148005 Signed-off-by: Jan Kara Signed-off-by: Jens Axboe --- Reading git-diff-tree failed