diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2013-11-25 09:09:32 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-11-25 10:04:49 +0000 |
commit | 7b235c92bbc6c7306ffef8caac5f07448c78d956 (patch) | |
tree | 1f025ca0856cad5bd5c37433a946bd01a73061b7 | |
parent | 318f100d7337955c099fecb86d206c406779fafe (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.c | 2 |
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; } |