From 506b1a3b97b4be8a07639beb227ca0d7085cbbbc Mon Sep 17 00:00:00 2001 From: Dave Jones Date: Fri, 10 Sep 2004 05:41:20 -0400 Subject: [PATCH] [PATCH] Remove possible reuse of stale pointer in aic7xxx Spotted with the source checker from Coverity.com. Signed-off-by: Dave Jones Signed-off-by: James Bottomley --- drivers/scsi/aic7xxx_old.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/scsi/aic7xxx_old.c b/drivers/scsi/aic7xxx_old.c index c92226b8c70b5..b0b94ef568b45 100644 --- a/drivers/scsi/aic7xxx_old.c +++ b/drivers/scsi/aic7xxx_old.c @@ -9243,6 +9243,7 @@ aic7xxx_detect(Scsi_Host_Template *template) { /* duplicate PCI entry, skip it */ kfree(temp_p); + temp_p = NULL; continue; } current_p = current_p->next; -- 2.53.0