summaryrefslogtreecommitdiffstats
path: root/domx
diff options
context:
space:
mode:
authorGabriel Guerrero Hernandez <x0099164@ti.com>2011-11-30 11:12:32 -0600
committerGabriel Guerrero Hernandez <x0099164@ti.com>2011-11-30 11:39:15 -0600
commitb2b21f0f5af83067e4187bd76b0c7ce3b3f60bb8 (patch)
tree3d48378aac347b64a4f9d88585d5372a1ed879e1 /domx
parent05efd076e76570cc0d26d0134d28e3753ea84e11 (diff)
downloadhardware_ti_omap4-b2b21f0f5af83067e4187bd76b0c7ce3b3f60bb8.zip
hardware_ti_omap4-b2b21f0f5af83067e4187bd76b0c7ce3b3f60bb8.tar.gz
hardware_ti_omap4-b2b21f0f5af83067e4187bd76b0c7ce3b3f60bb8.tar.bz2
Properly assering errors in PROXY_checkRpcError
Adding PROXY_ASSERT to ensure going to EXIT tag in every function in case of error from RPC layer. Discovered in call from PROXY_UseBuffer where even with error from RPC we were going ahead and update buffer number and updating with garbage pointer. Other cases that get affected are: OMX_ProxyCommonInit, PROXY_UseBuffer, PROXY_AllocateBuffer and RPC_UTIL_GetStride Signed-off-by: Gabriel Guerrero Hernandez <x0099164@ti.com>
Diffstat (limited to 'domx')
-rw-r--r--domx/omx_proxy_common/src/omx_proxy_common.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/domx/omx_proxy_common/src/omx_proxy_common.c b/domx/omx_proxy_common/src/omx_proxy_common.c
index 65f5e7f..d593e4d 100644
--- a/domx/omx_proxy_common/src/omx_proxy_common.c
+++ b/domx/omx_proxy_common/src/omx_proxy_common.c
@@ -176,6 +176,7 @@ char Core_Array[][MAX_CORENAME_LENGTH] =
default: \
eError = OMX_ErrorUndefined; \
} \
+ PROXY_assert((eError == OMX_ErrorNone), eError, "Error returned from OMX API in ducati"); \
} \
} while(0)