Jeff Garzik 5e4009ba3d [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 <jeff@garzik.org>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
2006-10-04 13:14:16 -05:00
..
2006-08-02 10:53:18 -04:00
2006-08-01 10:37:25 +10:00
2006-09-24 20:07:49 -07:00
2006-10-04 13:10:52 -05:00
2006-07-03 09:41:12 -05:00
2006-09-12 17:12:31 -05:00
2006-09-12 17:12:31 -05:00
2006-09-12 17:12:31 -05:00
2006-09-12 17:12:31 -05:00
2006-08-04 09:28:43 -04:00
2006-07-03 09:41:12 -05:00
2006-06-30 19:25:36 +02:00
2006-10-04 13:10:52 -05:00
2006-10-04 13:10:52 -05:00
2006-09-23 20:28:19 -05:00
2006-08-23 15:33:07 -07:00
2006-08-06 15:59:26 -05:00
2006-08-06 15:59:26 -05:00
2006-09-12 17:12:31 -05:00
2006-09-12 17:12:31 -05:00
2006-08-31 11:18:03 -04:00
2006-08-27 21:59:59 -05:00
2006-10-04 13:10:52 -05:00
2006-09-23 15:33:43 -05:00
2006-09-23 15:33:43 -05:00
2006-08-01 10:37:25 +10:00
2006-06-25 10:00:58 -07:00
2006-06-25 10:00:58 -07:00
2006-09-24 01:52:47 -04:00
2006-08-01 10:37:25 +10:00
2006-09-12 17:12:31 -05:00
2006-09-12 17:12:31 -05:00
2006-06-26 09:58:18 -07:00
2006-09-23 17:37:44 -05:00
2006-08-06 15:59:26 -05:00
2006-09-26 11:35:24 -07:00
2006-09-26 09:23:15 -07:00
2006-09-12 17:12:31 -05:00
2006-07-09 11:27:03 -05:00
2006-06-29 11:06:30 -04:00
2006-10-03 09:16:48 -05:00