Skip to contentSkip to conversation

Remove possible reuse of stale pointer in aic7xxx

PATCH New Dave Jones 1 participant 1 message Sep 1, 2004 SCSI

lore
Share & tools
lore

Dave Jones

author
#0 lore raw

PATCH 1/1 Remove possible reuse of stale pointer in aic7xxx

Spotted with the source checker from Coverity.com.

drivers/scsi/aic7xxx_old.c +1 -0
diff -urpN --exclude-from=/home/davej/.exclude bk-linus/drivers/scsi/aic7xxx_old.c linux-2.6/drivers/scsi/aic7xxx_old.c
@@ -9243,6 +9243,7 @@ aic7xxx_detect(Scsi_Host_Template *templ
 	    {
               /* duplicate PCI entry, skip it */
 	      kfree(temp_p);
+	      temp_p = NULL;
               continue;
 	    }
 	    current_p = current_p->next;