[PATCH] Remove possible reuse of stale pointer in aic7xxx

From: Dave Jones
Date: Wed Sep 01 2004 - 11:50:20 EST


Spotted with the source checker from Coverity.com.

Signed-off-by: Dave Jones <davej@xxxxxxxxxx>


diff -urpN --exclude-from=/home/davej/.exclude bk-linus/drivers/scsi/aic7xxx_old.c linux-2.6/drivers/scsi/aic7xxx_old.c
--- bk-linus/drivers/scsi/aic7xxx_old.c 2004-08-28 21:57:23.000000000 +0100
+++ linux-2.6/drivers/scsi/aic7xxx_old.c 2004-09-01 13:31:11.000000000 +0100
@@ -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;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/