Skip to contentSkip to conversation

UML - Use va_end wherever va_args are used

PATCH New Jeff Dike 1 participant 1 message Jan 10, 2005 User-mode Linux (UML)

lore
Share & tools
lore

Jeff Dike

author
#0 lore raw

PATCH 2/28 UML - Use va_end wherever va_args are used

Finish using va_list correctly, by calling va_end.

arch/um/kernel/signal_user.c +1 -0
Index: 2.6.10/arch/um/kernel/signal_user.c
===================================================================
@@ -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)
arch/um/kernel/tt/tracer.c +1 -0
Index: 2.6.10/arch/um/kernel/tt/tracer.c
===================================================================
@@ -84,6 +84,7 @@
 
 	va_start(ap, format);
 	vprintf(format, ap);
+	va_end(ap);
 	printf("\n");
 	while(1) pause();
 }