]> err.no Git - linux-2.6/blobdiff - drivers/acpi/hotkey.c
[PATCH] Add driver for ARM AMBA PL031 RTC
[linux-2.6] / drivers / acpi / hotkey.c
index 2e2e4051dfa7abb0180023313b21303e248ac67a..c25b2b92edcf1e8a0281d12568301d360213fb6b 100644 (file)
@@ -723,6 +723,8 @@ get_parms(char *config_record,
                goto do_fail;
        count = tmp1 - tmp;
        *action_handle = (char *)kmalloc(count + 1, GFP_KERNEL);
+       if (!*action_handle)
+               goto do_fail;
        strncpy(*action_handle, tmp, count);
        *(*action_handle + count) = 0;