From: David S. Miller Date: Sat, 24 Jun 2006 04:58:34 +0000 (-0700) Subject: [SCSI] esp: Fix bug in esp_remove_common. X-Git-Tag: v2.6.18-rc1~1075^2~5 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=7bd5ed5dd4f12ba56c99c9b5a8838afbf121f397;p=linux-2.6-omap-h63xx.git [SCSI] esp: Fix bug in esp_remove_common. Do not try to kfree(esp), scsi_host_put() takes care of that. Signed-off-by: David S. Miller --- diff --git a/drivers/scsi/esp.c b/drivers/scsi/esp.c index 8e8fc43c1d2..ddb512463b4 100644 --- a/drivers/scsi/esp.c +++ b/drivers/scsi/esp.c @@ -1120,9 +1120,6 @@ static int __devexit esp_remove_common(struct esp *esp) scsi_remove_host(esp->ehost); - scsi_host_put(esp->ehost); - esp->ehost = NULL; - ESP_INTSOFF(esp->dregs); #if 0 esp_reset_dma(esp); @@ -1135,7 +1132,7 @@ static int __devexit esp_remove_common(struct esp *esp) sbus_iounmap(esp->eregs, ESP_REG_SIZE); esp->dma->allocated = 0; - kfree(esp); + scsi_host_put(esp->ehost); return 0; }