summaryrefslogtreecommitdiffstats
path: root/sec_mm
diff options
context:
space:
mode:
authorSeungBeom Kim <sbcrux.kim@samsung.com>2011-11-21 10:34:04 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2011-11-21 10:34:04 -0800
commit56e1fb5e87b8300455b16c9c15aec789dac72870 (patch)
treedf326f0bd926f87b60357b989496addedd3f3ef4 /sec_mm
parent1eb0367133985dfcf46b6f8dc3d849a166595008 (diff)
parent41e03a94962b6aec7938762b0820928f90ff3502 (diff)
downloaddevice_samsung_crespo-56e1fb5e87b8300455b16c9c15aec789dac72870.zip
device_samsung_crespo-56e1fb5e87b8300455b16c9c15aec789dac72870.tar.gz
device_samsung_crespo-56e1fb5e87b8300455b16c9c15aec789dac72870.tar.bz2
am 41e03a94: Patch for SEC-OMX error handling.
* commit '41e03a94962b6aec7938762b0820928f90ff3502': Patch for SEC-OMX error handling.
Diffstat (limited to 'sec_mm')
-rw-r--r--sec_mm/sec_omx/sec_omx_component/common/SEC_OMX_Basecomponent.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sec_mm/sec_omx/sec_omx_component/common/SEC_OMX_Basecomponent.c b/sec_mm/sec_omx/sec_omx_component/common/SEC_OMX_Basecomponent.c
index 170600a..89e9aeb 100644
--- a/sec_mm/sec_omx/sec_omx_component/common/SEC_OMX_Basecomponent.c
+++ b/sec_mm/sec_omx/sec_omx_component/common/SEC_OMX_Basecomponent.c
@@ -329,6 +329,10 @@ OMX_ERRORTYPE SEC_OMX_ComponentStateSet(OMX_COMPONENTTYPE *pOMXComponent, OMX_U3
case OMX_StateLoaded:
for (i = 0; i < pSECComponent->portParam.nPorts; i++) {
pSECPort = (pSECComponent->pSECPort + i);
+ if (pSECPort == NULL) {
+ ret = OMX_ErrorBadParameter;
+ goto EXIT;
+ }
if (CHECK_PORT_TUNNELED(pSECPort) && CHECK_PORT_BUFFER_SUPPLIER(pSECPort)) {
if (CHECK_PORT_ENABLED(pSECPort)) {
ret = pSECComponent->sec_AllocateTunnelBuffer(pSECPort, i);