]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
asus_acpi: fix possible double free (found by Coverity)
authorJesper Juhl <jesper.juhl@gmail.com>
Sat, 28 Jul 2007 22:45:59 +0000 (00:45 +0200)
committerLen Brown <len.brown@intel.com>
Fri, 3 Aug 2007 20:15:28 +0000 (16:15 -0400)
Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/asus_acpi.c

index 9c4bd220c44fdf30381046b169c336365f10214a..86fd142f4bf3929731a7b43ef3dc1d1d825f696d 100644 (file)
@@ -1192,6 +1192,7 @@ static int asus_hotk_get_info(void)
                        break;
                default:
                        kfree(model);
+                       model = NULL;
                        break;
                }
        }