sna: Add missing va_end

Put va_end() into error paths

Signed-off-by: Zdenek Kabelac <zkabelac@redhat.com>
This commit is contained in:
Zdenek Kabelac 2013-11-25 09:09:32 +01:00 committed by Chris Wilson
parent 318f100d73
commit 7b235c92bb
1 changed files with 2 additions and 0 deletions

View File

@ -4804,6 +4804,7 @@ bool kgem_check_bo(struct kgem *kgem, ...)
if (needs_semaphore(kgem, bo)) {
DBG(("%s: flushing for required semaphore\n", __FUNCTION__));
va_end(ap);
return false;
}
@ -4974,6 +4975,7 @@ bool kgem_check_many_bo_fenced(struct kgem *kgem, ...)
if (needs_semaphore(kgem, bo)) {
DBG(("%s: flushing for required semaphore\n", __FUNCTION__));
va_end(ap);
return false;
}