[SCSI] sr: fix error handling in module_init
authorAkinobu Mita <akinobu.mita@gmail.com>
Mon, 25 Jun 2007 15:39:33 +0000 (00:39 +0900)
committerJames Bottomley <jejb@mulgrave.localdomain>
Sat, 14 Jul 2007 23:54:34 +0000 (18:54 -0500)
commitda3962fe63eae4f490356cb54e4700eac752541b
treefe59db896d263abe71f63d90a0e0fd1458edf1c0
parenta57850379e389829a2fc569733b41da3d52bf366
[SCSI] sr: fix error handling in module_init

Sweep registered blkdev when scsi_register_driver has failed.

Cc: Jens Axboe <jens.axboe@oracle.com>
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/sr.c