summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2013-11-25 09:09:32 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2013-11-25 10:04:49 +0000
commit7b235c92bbc6c7306ffef8caac5f07448c78d956 (patch)
tree1f025ca0856cad5bd5c37433a946bd01a73061b7
parent318f100d7337955c099fecb86d206c406779fafe (diff)
sna: Add missing va_end
Put va_end() into error paths Signed-off-by: Zdenek Kabelac <zkabelac@redhat.com>
-rw-r--r--src/sna/kgem.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sna/kgem.c b/src/sna/kgem.c
index 8775d2b9..7e36554b 100644
--- a/src/sna/kgem.c
+++ b/src/sna/kgem.c
@@ -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;
}