From: Jeff Garzik Date: Wed, 4 Oct 2006 09:32:54 +0000 (-0400) Subject: [SCSI] SCSI sd: fix module init/exit error handling X-Git-Tag: v2.6.19-rc1~4^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e4009ba3d5af40f5615fdb4304cc4a9947cca0a;p=pandora-kernel.git [SCSI] SCSI sd: fix module init/exit error handling - Properly handle and unwind errors in init_sd(). Fixes leaks on error, if class_register() or scsi_register_driver() failed. - Ensure that exit_sd() execution order is the perfect inverse of initialization order. FIXME: If some-but-not-all register_blkdev() calls fail, we wind up calling unregister_blkdev() for block devices we did not register. This was a pre-existing bug. Signed-off-by: Jeff Garzik Signed-off-by: James Bottomley --- Reading git-diff-tree failed