From: Handle X Date: Tue, 15 Aug 2006 05:37:27 +0000 (-0700) Subject: ACPI: hotkey.c fixes, fix for potential crash of hotkey.c X-Git-Tag: v2.6.18-rc5~75^5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5672bde6355f2d12c49df1eec083d25afe489063;p=pandora-kernel.git ACPI: hotkey.c fixes, fix for potential crash of hotkey.c While going through the code, I found out some memory leaks and potential crashes in drivers/acpi/hotkey.c Please find the patch to fix them. This patch does the following, 1. Fixes memory leaks in error paths of hotkey_write_config 2. Fixes freeing unallocated pointers in the error paths of hotkey_write_config 3. Uses a loop instead of linear searching for parsing the userspace input in get_params 4. Uses array of char * instead of passing 4 pointer parameters explicitly into the init_{poll_}hotkey_* static functions Signed-off-by: Andrew Morton Acked-by: Luming Yu Signed-off-by: Len Brown --- Reading git-diff-tree failed