From: FUJITA Tomonori Date: Thu, 22 Jul 2010 00:36:51 +0000 (+0900) Subject: [SCSI] sg: fix bio leak with a detached device X-Git-Tag: v2.6.36-rc1~570^2~45 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=caf19d38607108304cd8cc67ed21378017f69e8a;p=pandora-kernel.git [SCSI] sg: fix bio leak with a detached device After blk_rq_map_user is successful, if we find that a device is unavailable (was detached), we must call blk_end_request_all to free bio(s) before blk_rq_unmap_user and blk_put_request. Reported-by: "Dailey, Nate" Signed-off-by: FUJITA Tomonori Tested-by: "Dailey, Nate" Signed-off-by: James Bottomley --- Reading git-diff-tree failed