Commit 7ad0a03a authored by Marc Zyngier's avatar Marc Zyngier Committed by Andy Grover

[PATCH] Fix scsi_probe_and_add_lun

This fixes a bug introduced in the recent scsi_scan.c reorganisation.

Without this patch, my Alpha Jensen was crashing just after detecting
its first SCSI disk.  It is now working fine.
parent b76febed
......@@ -1338,7 +1338,7 @@ static int scsi_probe_and_add_lun(struct Scsi_Host *host,
scsi_release_request(sreq);
out_free_sdev:
if (res == SCSI_SCAN_LUN_PRESENT) {
if (*sdevp)
if (sdevp)
*sdevp = sdev;
} else {
if (q) {
......
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