Skip to contentSkip to conversation

Audit return code of

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

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/23 Audit return code of

Description:
Audit return of create_proc_* functions.

net/sctp/objcnt.c +5 -1
Index: 2.6.13-rc1/net/sctp/objcnt.c
===================================================================
@@ -127,8 +127,12 @@ done:
 /* Initialize the objcount in the proc filesystem.  */
 void sctp_dbg_objcnt_init(void)
 {
-	create_proc_read_entry("sctp_dbg_objcnt", 0, proc_net_sctp,
+	struct proc_dir_entry *ent;
+	ent = create_proc_read_entry("sctp_dbg_objcnt", 0, proc_net_sctp,
 			       sctp_dbg_objcnt_read, NULL);
+	if (!ent)
+		printk(KERN_WARNING 
+			"sctp_dbg_objcnt: Unable to create /proc entry.\n");
 }
 
 /* Cleanup the objcount entry in the proc filesystem.  */

_______________________________________________
Kernel-janitors mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/kernel-janitors