diff options
author | Sam Nelson <sam.nelson@ti.com> | 2019-10-05 09:31:45 -0400 |
---|---|---|
committer | Sam Nelson <sam.nelson@ti.com> | 2019-10-08 15:50:39 -0400 |
commit | aab5b0256ba506b2ee146ce29933c32ceee71017 (patch) | |
tree | e8297bef77c6138935b0538cc6e52a1d50857a63 | |
parent | c115e83b16565b33e17f53064e9e1c22eae29a9d (diff) | |
download | ipc-aab5b0256ba506b2ee146ce29933c32ceee71017.tar.gz |
srvmgr: Add NULL check for robustness
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
-rw-r--r-- | packages/ti/srvmgr/omx/OmxSrvMgr.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/packages/ti/srvmgr/omx/OmxSrvMgr.c b/packages/ti/srvmgr/omx/OmxSrvMgr.c index 383bbd6..24b267e 100644 --- a/packages/ti/srvmgr/omx/OmxSrvMgr.c +++ b/packages/ti/srvmgr/omx/OmxSrvMgr.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012-2013, Texas Instruments Incorporated + * Copyright (c) 2012-2019, Texas Instruments Incorporated * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -79,6 +79,11 @@ Void OmxSrvMgr_taskFxn(UArg arg0, UArg arg1) msgq = RPMessage_create(OMX_MGR_PORT, NULL, NULL, &local); + if (msgq == NULL) { + System_printf("OmxSrvMgr: RPMessage create failed: %d\n", OMX_MGR_PORT); + return; + } + System_printf("OmxSrvMgr: started on port: %d\n", OMX_MGR_PORT); #ifdef SMP |