All of lore.kernel.org
 help / color / mirror / Atom feed
From: Domen Puncer <domen@coderock.org>
To: kernel-janitors@vger.kernel.org
Subject: Re: [KJ] [patch 2.6.13-rc1 21/23][RESEND] Audit return code of
Date: Tue, 12 Jul 2005 12:28:35 +0000	[thread overview]
Message-ID: <20050712122835.GD2470@homer.coderock.org> (raw)
In-Reply-To: <20050712120758.GG4712@rhum.iomeda.fr>

[-- Attachment #1: Type: text/plain, Size: 892 bytes --]

On 12/07/05 14:07 +0200, Christophe Lucas wrote:
> Description:
> Audit return of create_proc_* functions.
> 
> Signed-off-by: Christophe Lucas <clucas@rotomalug.org>
> 
> Index: 2.6.13-rc1/arch/arm/kernel/ecard.c
> ===================================================================
> --- 2.6.13-rc1.orig/arch/arm/kernel/ecard.c
> +++ 2.6.13-rc1/arch/arm/kernel/ecard.c
> @@ -776,9 +776,16 @@ static struct proc_dir_entry *proc_bus_e
>  
>  static void ecard_proc_init(void)
>  {
> +	struct proc_dir_entry *proc_entry;
> +
>  	proc_bus_ecard_dir = proc_mkdir("ecard", proc_bus);
> -	create_proc_info_entry("devices", 0, proc_bus_ecard_dir,
> +	if (proc_bus_ecard_dir == NULL)
> +		printk(KERN_WARNING 
> +			"ecard: Unable to create proc dir entry.\n");
> +	proc_entry = create_proc_info_entry("devices", 0, proc_bus_ecard_dir,

I don' think this is intended if proc_bus_ecard_dir is NULL.


[-- 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

  reply	other threads:[~2005-07-12 12:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-12 12:07 [KJ] [patch 2.6.13-rc1 21/23][RESEND] Audit return code of Christophe Lucas
2005-07-12 12:28 ` Domen Puncer [this message]
2005-07-12 16:57 ` Christophe Lucas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050712122835.GD2470@homer.coderock.org \
    --to=domen@coderock.org \
    --cc=kernel-janitors@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.