Skip to content

Commit

Permalink
[SCSI] esp: Fix bug in esp_remove_common.
Browse files Browse the repository at this point in the history
Do not try to kfree(esp), scsi_host_put() takes care of that.

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Jun 24, 2006
1 parent 9639948 commit 7bd5ed5
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions drivers/scsi/esp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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;
}
Expand Down

0 comments on commit 7bd5ed5

Please sign in to comment.