]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] aic94xx: Free scsi host on error
authorMatthew Wilcox <matthew@wil.cx>
Wed, 15 Aug 2007 18:56:55 +0000 (12:56 -0600)
committerJames Bottomley <jejb@mulgrave.localdomain>
Fri, 12 Oct 2007 18:51:33 +0000 (14:51 -0400)
commit5d49f682a679c34ba3be685448355a7dccc3bcc2
treec1cd3eedd0919db831175e2da28e8c494848058f
parent9af62ceee07b1fe108dc6c71da739e14e75eb649
[SCSI] aic94xx: Free scsi host on error

If an error occurred during initialisation, we would sometimes fail to
call scsi_host_put() and thus end up with a leaked scsi_host.  It was
also possible to miss calling scsi_remove_host().

Signed-off-by: Matthew Wilcox <matthew@wil.cx>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/aic94xx/aic94xx_init.c