All of lore.kernel.org
 help / color / mirror / Atom feed
* [KJ] [patch 2.6.13-rc1 01/23] Audit return code of create_proc_*
@ 2005-07-07 15:44 Christophe Lucas
  2005-07-07 22:15 ` Alexey Dobriyan
  0 siblings, 1 reply; 2+ messages in thread
From: Christophe Lucas @ 2005-07-07 15:44 UTC (permalink / raw)
  To: kernel-janitors

[-- Attachment #1: proc_create_net_sctp_objcnt.c.diff --]
[-- Type: text/plain, Size: 707 bytes --]

diff -urpNX dontdiff 2.6.13-rc1.orig/net/sctp/objcnt.c 2.6.13-rc1/net/sctp/objcnt.c
--- 2.6.13-rc1.orig/net/sctp/objcnt.c	2005-06-29 07:57:29.000000000 +0200
+++ 2.6.13-rc1/net/sctp/objcnt.c	2005-07-05 11:27:00.319634800 +0200
@@ -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.  */

--

[-- Attachment #2: Type: text/plain, Size: 168 bytes --]

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [KJ] [patch 2.6.13-rc1 01/23] Audit return code of create_proc_*
  2005-07-07 15:44 [KJ] [patch 2.6.13-rc1 01/23] Audit return code of create_proc_* Christophe Lucas
@ 2005-07-07 22:15 ` Alexey Dobriyan
  0 siblings, 0 replies; 2+ messages in thread
From: Alexey Dobriyan @ 2005-07-07 22:15 UTC (permalink / raw)
  To: kernel-janitors

On Thursday 07 July 2005 19:44, Christophe Lucas wrote:
> --- 2.6.13-rc1.orig/net/sctp/objcnt.c
> +++ 2.6.13-rc1/net/sctp/objcnt.c
>  void sctp_dbg_objcnt_init(void)
>  {
> -	create_proc_read_entry("sctp_dbg_objcnt", 0, proc_net_sctp,
> +	struct proc_dir_entry* ent;

	struct proc_dir_entry *ent;

> +	ent = create_proc_read_entry("sctp_dbg_objcnt", 0, proc_net_sctp,
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-07-07 22:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-07 15:44 [KJ] [patch 2.6.13-rc1 01/23] Audit return code of create_proc_* Christophe Lucas
2005-07-07 22:15 ` Alexey Dobriyan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.