]> err.no Git - linux-2.6/blobdiff - net/sctp/objcnt.c
[PATCH] sunrpc: cache_register can use wrong module reference
[linux-2.6] / net / sctp / objcnt.c
index 0781e5d509fddc2fda2b273d34c615db34f81645..8ff588f0d76af8343820d6020118c7d48570eae4 100644 (file)
@@ -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.  */