1. 16 Aug, 2006 1 commit
    • Handle X's avatar
      ACPI: hotkey.c fixes, fix for potential crash of hotkey.c · 5672bde6
      Handle X authored
      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: default avatarAndrew Morton <akpm@osdl.org>
      Acked-by: default avatarLuming Yu <luming.yu@intel.com>
      Signed-off-by: default avatarLen Brown <len.brown@intel.com>
      5672bde6
  2. 06 Aug, 2006 39 commits