kernel/* - compile warning cleanup
PATCH 18/21 kernel/* - compile warning cleanup
Description: compile warning cleanup - handle copy_to/from_user error returns
Signed-off-by Stephen Biggs <[email protected]>
kernel/module.c +4 -1
@@ -1402,7 +1402,10 @@ static void who_is_doing_it(void)char args[512 ];unsigned int i, len = current->mm->arg_end - current->mm->arg_start; -copy_from_user (args, (void *)current->mm->arg_start, len); +if (copy_from_user (args, (void *)current->mm->arg_start, len)) { +printk (KERN_ERR "kernel/module.c:%s: copy_from_user failed!\n" ,__FUNCTION__); +return ; + }for (i =0 ; i < len; i++) {if (args[i] =='\0' )
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors