From 1c6987dd2de5099b441a745f0ea8bd5d52244165 Mon Sep 17 00:00:00 2001 From: Xianzhong Date: Sat, 15 Sep 2012 06:54:27 +0800 Subject: ENGR00224404 gpu: fixed unpredictable return value Hwcomposer check this return value and will crash due to init failure rarely. Signed-off-by: Xianzhong Acked-by: Lily Zhang --- drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_driver.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_driver.c b/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_driver.c index 02aaf81faf95..3f873f09d1a0 100644 --- a/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_driver.c +++ b/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_driver.c @@ -496,6 +496,7 @@ long drv_ioctl( iface.u.ChipInfo.count = count; status = gcvSTATUS_OK; + iface.status = status; } else { -- cgit v1.2.3