mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jeff Dike <jdike@addtoit.com>
To: akpm@osdl.org
Cc: linux-kernel@vger.kernel.org, blaisorblade_spam@yahoo.it
Subject: [PATCH 2/28] UML - Use va_end wherever va_args are used
Date: Mon, 10 Jan 2005 02:35:09 -0500	[thread overview]
Message-ID: <200501100735.j0A7Z9PW005740@ccure.user-mode-linux.org> (raw)

Finish using va_list correctly, by calling va_end.

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it>
Signed-off-by: Jeff Dike <jdike@addtoit.com>

Index: 2.6.10/arch/um/kernel/signal_user.c
===================================================================
--- 2.6.10.orig/arch/um/kernel/signal_user.c	2004-12-14 12:10:30.000000000 -0500
+++ 2.6.10/arch/um/kernel/signal_user.c	2004-12-14 15:51:35.000000000 -0500
@@ -41,6 +41,7 @@
 	while((mask = va_arg(ap, int)) != -1){
 		sigaddset(&action.sa_mask, mask);
 	}
+	va_end(ap);
 	action.sa_flags = flags;
 	action.sa_restorer = NULL;
 	if(sigaction(sig, &action, NULL) < 0)
Index: 2.6.10/arch/um/kernel/tt/tracer.c
===================================================================
--- 2.6.10.orig/arch/um/kernel/tt/tracer.c	2004-12-14 12:14:46.000000000 -0500
+++ 2.6.10/arch/um/kernel/tt/tracer.c	2004-12-14 15:51:35.000000000 -0500
@@ -84,6 +84,7 @@
 
 	va_start(ap, format);
 	vprintf(format, ap);
+	va_end(ap);
 	printf("\n");
 	while(1) pause();
 }


                 reply	other threads:[~2005-01-10  5:13 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=200501100735.j0A7Z9PW005740@ccure.user-mode-linux.org \
    --to=jdike@addtoit.com \
    --cc=akpm@osdl.org \
    --cc=blaisorblade_spam@yahoo.it \
    --cc=linux-kernel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome