Commit c26332f5 authored by James Bottomley's avatar James Bottomley Committed by James Bottomley

[SCSI] make echo scsi add-single-device x x x x > /proc/scsi/scsi work again

Correct the logic error making it fail
parent 7cfdf2cc
......@@ -1758,7 +1758,7 @@ int scsi_add_single_device(uint host, uint channel, uint id, uint lun)
shost = scsi_host_hn_get(host);
if (!shost)
return -ENODEV;
if(scsi_find_device(shost, channel, id, lun) != NULL)
if(scsi_find_device(shost, channel, id, lun) == NULL)
goto out;
if (scsi_probe_and_add_lun(shost, NULL, channel, id, lun, NULL) ==
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment