Audit return code of
PATCH RESEND 14/23 Audit return code of
Description:
Audit return of create_proc_* functions.
Signed-off-by Christophe Lucas <[email protected]>
arch/sh64/mm/ioremap.c +5 -1
@@ -461,7 +461,11 @@ ioremap_proc_info(char *buf, char **starstatic int __init register_proc_onchip (void ) {#ifdef CONFIG_PROC_FS -create_proc_read_entry ("io_map" ,0 ,0 , ioremap_proc_info, &shmedia_iomap); +struct proc_dir_entry *ent; + ent =create_proc_read_entry ("io_map" ,0 ,0 , + ioremap_proc_info, &shmedia_iomap); +if (!ent) +printk (KERN_WARNING "ioremap.c: Unable to create /proc entry.\n" );#endif return 0 ; }
_______________________________________________
Kernel-janitors mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/kernel-janitors