projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc0195a
)
xtensa: ISS: add missing va_end into split_if_spec
author
Max Filippov
<jcmvbkbc@gmail.com>
Mon, 13 Jul 2015 12:42:00 +0000
(15:42 +0300)
committer
Max Filippov
<jcmvbkbc@gmail.com>
Mon, 13 Jul 2015 12:42:00 +0000
(15:42 +0300)
Reported-by: David Binderman <dcb314@hotmail.com>
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
arch/xtensa/platforms/iss/network.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/xtensa/platforms/iss/network.c
b/arch/xtensa/platforms/iss/network.c
index 8ab021b1f14128d49948de51f685a78fd7180fa2..976a3859453707b5d2acaa1e7f80b0e81a16a74e 100644
(file)
--- a/
arch/xtensa/platforms/iss/network.c
+++ b/
arch/xtensa/platforms/iss/network.c
@@
-105,13
+105,17
@@
static char *split_if_spec(char *str, ...)
va_start(ap, str);
while ((arg = va_arg(ap, char**)) != NULL) {
- if (*str == '\0')
+ if (*str == '\0') {
+ va_end(ap);
return NULL;
+ }
end = strchr(str, ',');
if (end != str)
*arg = str;
- if (end == NULL)
+ if (end == NULL) {
+ va_end(ap);
return NULL;
+ }
*end++ = '\0';
str = end;
}