Commit 9d0c5fee29c30a361309514459e88e401f292532

Authored by André Draszik
Committed by Simon Glass
1 parent 1259f778c9

tpm: add more missing va_end()

While commit 36d35345b1f6 ("tpm: add missing va_end") added
some missing calls to va_end(), it missed a few places.

Signed-off-by: André Draszik <adraszik@tycoint.com>
Acked-by: Simon Glass <sjg@chromium.org>

Showing 1 changed file with 4 additions and 1 deletions Side-by-side Diff

... ... @@ -92,6 +92,7 @@
92 92 break;
93 93 default:
94 94 debug("Couldn't recognize format string\n");
  95 + va_end(args);
95 96 return -1;
96 97 }
97 98  
98 99  
... ... @@ -170,8 +171,10 @@
170 171 return -1;
171 172 }
172 173  
173   - if (offset + length > size)
  174 + if (offset + length > size) {
  175 + va_end(args);
174 176 return -1;
  177 + }
175 178  
176 179 switch (*format) {
177 180 case 'b':