summaryrefslogtreecommitdiff
path: root/drivers/scsi/esp.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@sunset.davemloft.net>2006-06-24 08:58:34 +0400
committerDavid S. Miller <davem@sunset.davemloft.net>2006-06-24 10:16:13 +0400
commit7bd5ed5dd4f12ba56c99c9b5a8838afbf121f397 (patch)
treeaff1f778fe94307880cf9b6b972fe7aafd924252 /drivers/scsi/esp.c
parent96399487ad84b0d935923fe3652943159f36fb64 (diff)
downloadlinux-7bd5ed5dd4f12ba56c99c9b5a8838afbf121f397.tar.xz
[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 <davem@davemloft.net>
Diffstat (limited to 'drivers/scsi/esp.c')
-rw-r--r--drivers/scsi/esp.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/scsi/esp.c b/drivers/scsi/esp.c
index 8e8fc43c1d22..ddb512463b45 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;
}