From: Boaz Harrosh Date: Tue, 24 Mar 2009 11:35:07 +0000 (+0100) Subject: block: WARN in __blk_put_request() for potential bio leak X-Git-Tag: v2.6.30-rc1~660^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1cd96c242a829d52f7a5ae98f554ca9775429685;p=pandora-kernel.git block: WARN in __blk_put_request() for potential bio leak Put a WARN_ON in __blk_put_request if it is about to leak bio(s). This is a serious bug that can happen in error handling code paths. For this to work I have fixed a couple of places in block/ where request->bio != NULL ownership was not honored. And a small cleanup at sg_io() while at it. Signed-off-by: Boaz Harrosh Signed-off-by: Jens Axboe --- Reading git-diff-tree failed