Skip to content

Commit 7bd5ed5

Browse files
author
David S. Miller
committed
[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 <[email protected]>
1 parent 9639948 commit 7bd5ed5

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

drivers/scsi/esp.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1120,9 +1120,6 @@ static int __devexit esp_remove_common(struct esp *esp)
11201120

11211121
scsi_remove_host(esp->ehost);
11221122

1123-
scsi_host_put(esp->ehost);
1124-
esp->ehost = NULL;
1125-
11261123
ESP_INTSOFF(esp->dregs);
11271124
#if 0
11281125
esp_reset_dma(esp);
@@ -1135,7 +1132,7 @@ static int __devexit esp_remove_common(struct esp *esp)
11351132
sbus_iounmap(esp->eregs, ESP_REG_SIZE);
11361133
esp->dma->allocated = 0;
11371134

1138-
kfree(esp);
1135+
scsi_host_put(esp->ehost);
11391136

11401137
return 0;
11411138
}

0 commit comments

Comments
 (0)