[SCSI] simscsi: Free scsi host on error
authorMatthew Wilcox <matthew@wil.cx>
Wed, 15 Aug 2007 18:56:54 +0000 (12:56 -0600)
committerJames Bottomley <jejb@mulgrave.localdomain>
Fri, 12 Oct 2007 18:51:29 +0000 (14:51 -0400)
commita60ebc52cbfafc291c6b0b89e41ecaf3685c8e2a
tree55b512e8de7ac38df5115b854890d82344070633
parentc131993b4cbfb6d564619e609b3d0b471ec52c5d
[SCSI] simscsi: Free scsi host on error

If scsi_add_host returned an error, the host would never be freed.
We need to call scsi_host_put() if an error happens.

Signed-off-by: Matthew Wilcox <matthew@wil.cx>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
arch/ia64/hp/sim/simscsi.c