Skip to contentSkip to conversation

Audit return code of

PATCH RESEND Superseded Christophe Lucas 1 participant 1 message Jul 8, 2005 Kernel janitors

lore
Share & tools
lore
#0 lore raw

PATCH RESEND 14/23 Audit return code of

Description:
Audit return of create_proc_* functions.

arch/sh64/mm/ioremap.c +5 -1
Index: 2.6.13-rc1/arch/sh64/mm/ioremap.c
===================================================================
@@ -461,7 +461,11 @@ ioremap_proc_info(char *buf, char **star
 static 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