Skip to content

Commit

Permalink
[SCSI] esp: fix instance numbering.
Browse files Browse the repository at this point in the history
Because the ->unique_id is set too late, the ESP scsi host
instance numbers in the kernel log during probing are
wrong.

Bug reported by Meelis Roos.

Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
  • Loading branch information
David Miller authored and James Bottomley committed Sep 26, 2007
1 parent 2302827 commit ff4abd6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/scsi/esp_scsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -2314,6 +2314,7 @@ int __devinit scsi_esp_register(struct esp *esp, struct device *dev)
esp->host->transportt = esp_transport_template;
esp->host->max_lun = ESP_MAX_LUN;
esp->host->cmd_per_lun = 2;
esp->host->unique_id = instance;

esp_set_clock_params(esp);

Expand All @@ -2337,7 +2338,7 @@ int __devinit scsi_esp_register(struct esp *esp, struct device *dev)
if (err)
return err;

esp->host->unique_id = instance++;
instance++;

scsi_scan_host(esp->host);

Expand Down

0 comments on commit ff4abd6

Please sign in to comment.