summaryrefslogtreecommitdiff
path: root/libkms/exynos.c
diff options
context:
space:
mode:
Diffstat (limited to 'libkms/exynos.c')
-rw-r--r--libkms/exynos.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libkms/exynos.c b/libkms/exynos.c
index 5de2e5a9..0e97fb51 100644
--- a/libkms/exynos.c
+++ b/libkms/exynos.c
@@ -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));