applied. thanks, -len
>-----Original Message----- >From: [EMAIL PROTECTED] >[mailto:[EMAIL PROTECTED] On Behalf Of Alexey Dobriyan >Sent: Friday, January 20, 2006 3:28 PM >To: Andrew Morton >Cc: Irwan Djajadi; [email protected] >Subject: [PATCH] drivers/acpi/hotkey.c: check kmalloc return value > >From: Irwan Djajadi <[EMAIL PROTECTED]> > >Signed-off-by: Irwan Djajadi <[EMAIL PROTECTED]> >Signed-off-by: Alexey Dobriyan <[EMAIL PROTECTED]> >--- > > drivers/acpi/hotkey.c | 2 ++ > 1 file changed, 2 insertions(+) > >--- a/drivers/acpi/hotkey.c >+++ b/drivers/acpi/hotkey.c >@@ -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; > > >- >To unsubscribe from this list: send the line "unsubscribe >linux-acpi" in >the body of a message to [EMAIL PROTECTED] >More majordomo info at http://vger.kernel.org/majordomo-info.html > - To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html
