]> git.hungrycats.org Git - linux/commitdiff
[PATCH] Remove possible reuse of stale pointer in aic7xxx
authorDave Jones <davej@redhat.com>
Fri, 10 Sep 2004 09:41:20 +0000 (05:41 -0400)
committerDave Jones <davej@delerium.codemonkey.org.uk>
Fri, 10 Sep 2004 09:41:20 +0000 (05:41 -0400)
Spotted with the source checker from Coverity.com.

Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/aic7xxx_old.c

index c92226b8c70b5e023f7d0ae46f16e2465f6d7c8f..b0b94ef568b45d509390edf90a7befc1fcb6cd8b 100644 (file)
@@ -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;