From: Jesper Juhl Date: Sat, 28 Jul 2007 22:45:59 +0000 (+0200) Subject: asus_acpi: fix possible double free (found by Coverity) X-Git-Tag: v2.6.23-rc3~5^2~8^2 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de47b69c7b7be46b0848b2c4f8e23c478cd68690;p=linux-2.6 asus_acpi: fix possible double free (found by Coverity) Signed-off-by: Jesper Juhl Signed-off-by: Len Brown --- diff --git a/drivers/acpi/asus_acpi.c b/drivers/acpi/asus_acpi.c index 9c4bd220c4..86fd142f4b 100644 --- a/drivers/acpi/asus_acpi.c +++ b/drivers/acpi/asus_acpi.c @@ -1192,6 +1192,7 @@ static int asus_hotk_get_info(void) break; default: kfree(model); + model = NULL; break; } }