Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7bd5ed5d authored by David S. Miller's avatar David S. Miller
Browse files

[SCSI] esp: Fix bug in esp_remove_common.



Do not try to kfree(esp), scsi_host_put() takes care of that.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 96399487
Loading
Loading
Loading
Loading
+1 −4
Original line number Original line Diff line number Diff line
@@ -1120,9 +1120,6 @@ static int __devexit esp_remove_common(struct esp *esp)


	scsi_remove_host(esp->ehost);
	scsi_remove_host(esp->ehost);


	scsi_host_put(esp->ehost);
	esp->ehost = NULL;

	ESP_INTSOFF(esp->dregs);
	ESP_INTSOFF(esp->dregs);
#if 0
#if 0
	esp_reset_dma(esp);
	esp_reset_dma(esp);
@@ -1135,7 +1132,7 @@ static int __devexit esp_remove_common(struct esp *esp)
	sbus_iounmap(esp->eregs, ESP_REG_SIZE);
	sbus_iounmap(esp->eregs, ESP_REG_SIZE);
	esp->dma->allocated = 0;
	esp->dma->allocated = 0;


	kfree(esp);
	scsi_host_put(esp->ehost);


	return 0;
	return 0;
}
}