summaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorJeff Garzik <jeff@garzik.org>2006-10-04 11:32:54 +0200
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>2006-10-04 20:14:16 +0200
commit5e4009ba3d5af40f5615fdb4304cc4a9947cca0a (patch)
treea6dd31cd9f6dfa1c85b3b5fefcded5b74d0ac2f5 /security
parent[SCSI] SCSI osst: add error handling to module init, sysfs (diff)
downloadlinux-5e4009ba3d5af40f5615fdb4304cc4a9947cca0a.tar.xz
linux-5e4009ba3d5af40f5615fdb4304cc4a9947cca0a.zip
[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>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions