[SCSI] SCSI osst: add error handling to module init, sysfs
commit37e0333c68ca9cbddfc0108e1889556287563df0
authorJeff Garzik <jeff@garzik.org>
Wed, 4 Oct 2006 09:23:04 +0000 (4 05:23 -0400)
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>
Wed, 4 Oct 2006 18:12:44 +0000 (4 13:12 -0500)
tree2f6b27aff5b6d8e737c9a8f8bccdd8d3a3c25b9a
parentde77aaff5f0178f44867f131deb5e2cb1610fe6b
[SCSI] SCSI osst: add error handling to module init, sysfs

- check all sysfs-related return codes, and propagate them back to callers

- properly unwind errors in osst_probe(), init_osst().  This fixes a
  leak that occured if scsi driver registration failed, and fixes an
  oops if sysfs creation returned an error.

(unrelated)
- kzalloc() cleanup in new_tape_buf()

Signed-off-by: Jeff Garzik <jeff@garzik.org>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/osst.c