]> git.hungrycats.org Git - linux/commitdiff
[PATCH] Fix scsi_probe_and_add_lun
authorMarc Zyngier <mzyngier@freesurf.fr>
Fri, 28 Feb 2003 06:48:32 +0000 (22:48 -0800)
committerAndy Grover <agrover@groveronline.com>
Fri, 28 Feb 2003 06:48:32 +0000 (22:48 -0800)
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.

drivers/scsi/scsi_scan.c

index 46c283d26a20c6afc4fccc285033e5589d0151f9..4ab494c4bef329def4b9562f3ff3e8bc137d1e5d 100644 (file)
@@ -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) {