2004-09-01 16:21:02

by Dave Jones

[permalink] [raw]
Subject: [PATCH] Remove possible reuse of stale pointer in aic7xxx

Spotted with the source checker from Coverity.com.

Signed-off-by: Dave Jones <[email protected]>


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;