]> Git Repo - linux.git/commitdiff
asus_acpi: fix possible double free (found by Coverity)
authorJesper Juhl <[email protected]>
Sat, 28 Jul 2007 22:45:59 +0000 (00:45 +0200)
committerLen Brown <[email protected]>
Fri, 3 Aug 2007 20:15:28 +0000 (16:15 -0400)
Signed-off-by: Jesper Juhl <[email protected]>
Signed-off-by: Len Brown <[email protected]>
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;
                }
        }
This page took 0.060846 seconds and 4 git commands to generate.