All of lore.kernel.org
 help / color / mirror / Atom feed
* [uml-devel] linux-4.2-rc2/arch/um/drivers/net_user.c:258: possible missing call to va_end ?
@ 2015-07-13  9:08 David Binderman
  2015-07-13 11:49 ` Richard Weinberger
  0 siblings, 1 reply; 13+ messages in thread
From: David Binderman @ 2015-07-13  9:08 UTC (permalink / raw)
  To: Jeff Dike, Richard Weinberger,
	user-mode-linux-devel@lists.sourceforge.net

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


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

end of thread, other threads:[~2015-07-13 16:33 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

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.