All of lore.kernel.org
 help / color / mirror / Atom feed
From: Richard Weinberger <richard@nod.at>
To: David Binderman <dcb314@hotmail.com>,
	Jeff Dike <jdike@addtoit.com>,
	"user-mode-linux-devel@lists.sourceforge.net"
	<user-mode-linux-devel@lists.sourceforge.net>
Subject: Re: [uml-devel] linux-4.2-rc2/arch/um/drivers/net_user.c:258: possible missing call to va_end ?
Date: Mon, 13 Jul 2015 13:49:52 +0200	[thread overview]
Message-ID: <55A3A5E0.8030802@nod.at> (raw)
In-Reply-To: <DUB128-W4287C49CC298A43BB8A3409C9C0@phx.gbl>

Hi!

Can you please render this into a proper patch and re-send to the mailinglist?

Thanks,
//richard

Am 13.07.2015 um 11:08 schrieb David Binderman:
> Hello there,
> 
> [linux-4.2-rc2/arch/um/drivers/net_user.c:258]: (error) va_list 'ap' was opened but not closed by va_end().
> 
> Source code is
> 
>     va_start(ap, str);
>     while ((arg = va_arg(ap, char **)) != NULL) {
>         if (*str == '\0')
>             return NULL;
>         end = strchr(str, ',');
>         if (end != str)
>             *arg = str;
>         if (end == NULL)
>             return NULL;
>         *end++ = '\0';
>         str = end;
>     }
>     va_end(ap);
>     return str;
> 
> If va_end needs to be called for successful return, it probably also
> needs to be called for NULL return (twice).
> 
> Regards
> 
> David Binderman
> 
>  		 	   		  
> 

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel


  reply	other threads:[~2015-07-13 11:50 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-13  9:08 [uml-devel] linux-4.2-rc2/arch/um/drivers/net_user.c:258: possible missing call to va_end ? David Binderman
2015-07-13 11:49 ` Richard Weinberger [this message]
2015-07-13 12:52   ` David Binderman
2015-07-13 12:58     ` Geert Uytterhoeven
2015-07-13 13:07       ` Richard Weinberger
2015-07-13 14:57       ` David Binderman
2015-07-13 15:13         ` Jeff Dike
2015-07-13 15:25           ` David Binderman
2015-07-13 15:26         ` Geert Uytterhoeven
2015-07-13 15:40           ` Toralf Förster
2015-07-13 15:46             ` Geert Uytterhoeven
2015-07-13 15:56               ` Toralf Förster
2015-07-13 16:33           ` David Binderman

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=55A3A5E0.8030802@nod.at \
    --to=richard@nod.at \
    --cc=dcb314@hotmail.com \
    --cc=jdike@addtoit.com \
    --cc=user-mode-linux-devel@lists.sourceforge.net \
    /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.