aboutsummaryrefslogtreecommitdiff
path: root/drivers/acpi
diff options
context:
space:
mode:
authorJesper Juhl <jesper.juhl@gmail.com>2007-07-29 00:45:59 +0200
committerLen Brown <len.brown@intel.com>2007-08-03 16:15:28 -0400
commitde47b69c7b7be46b0848b2c4f8e23c478cd68690 (patch)
tree033b7cbbfa3e3cc8b2036462b39a489d0ad6cfb2 /drivers/acpi
parent7a883eaf62f4b943ebec738ce3b0796c67ef5d32 (diff)
asus_acpi: fix possible double free (found by Coverity)
Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi')
-rw-r--r--drivers/acpi/asus_acpi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/acpi/asus_acpi.c b/drivers/acpi/asus_acpi.c
index 9c4bd220c44..86fd142f4bf 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;
}
}