Skip to contentSkip to conversation

Fix scsi_probe_and_add_lun

PATCH In review Marc Zyngier 2 participants 2 messages Feb 28, 2003 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix scsi_probe_and_add_lun

Christoph,

The following patch 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.

        M.

# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher. # This patch includes the following deltas:
# ChangeSet 1.1092 -> 1.1093
# drivers/scsi/scsi_scan.c 1.62 -> 1.63
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 03/02/28 [email protected] 1.1093
# Fix scsi_probe_and_add_lun typo.
# The ol'Jensen wouldn't boot without it...
# --------------------------------------------
#

drivers/scsi/scsi_scan.c +1 -1
diff -Nru a/drivers/scsi/scsi_scan.c b/drivers/scsi/scsi_scan.c
@@ -1338,7 +1338,7 @@
 	scsi_release_request(sreq);
  out_free_sdev:
 	if (res == SCSI_SCAN_LUN_PRESENT) {
-		if (*sdevp)
+		if (sdevp)
 			*sdevp = sdev;
 	} else {
 		if (q) {
Signature · 2 lines
-- 
Places change, faces change. Life is so very strange.
#1 lore raw
Quoted 7 lines · Marc Zyngier

Christoph,

The following patch 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.

Argg, stupid mistake - thanks for the patch.