From: Mike Snitzer Date: Thu, 3 Jun 2010 17:34:52 +0000 (-0600) Subject: block: avoid unconditionally freeing previously allocated request_queue X-Git-Tag: v2.6.35-rc2~12^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c86d1b8ae622e1ea5d20e98bd72fbd7d9dd69016;p=pandora-kernel.git block: avoid unconditionally freeing previously allocated request_queue On blk_init_allocated_queue_node failure, only free the request_queue if it is wasn't previously allocated outside the block layer (e.g. blk_init_queue_node was blk_init_allocated_queue_node caller). This addresses an interface bug introduced by the following commit: 01effb0 block: allow initialization of previously allocated request_queue Otherwise the request_queue may be free'd out from underneath a caller that is managing the request_queue directly (e.g. caller uses blk_alloc_queue + blk_init_allocated_queue_node). Signed-off-by: Mike Snitzer Signed-off-by: Jens Axboe --- Reading git-diff-tree failed