libkms/exynos: fix memory leak in error path

This patch fixes memory leak in error path of exynos_bo_create().

Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
This commit is contained in:
Seung-Woo Kim 2016-11-14 14:31:34 +09:00 committed by Emil Velikov
parent 0645648dd0
commit a07cf7f08d

View file

@ -88,7 +88,8 @@ exynos_bo_create(struct kms_driver *kms,
pitch = (pitch + 512 - 1) & ~(512 - 1);
size = pitch * ((height + 4 - 1) & ~(4 - 1));
} else {
return -EINVAL;
ret = -EINVAL;
goto err_free;
}
memset(&arg, 0, sizeof(arg));