diff options
author | Sam Nelson <sam.nelson@ti.com> | 2019-10-07 15:31:25 -0400 |
---|---|---|
committer | Sam Nelson <sam.nelson@ti.com> | 2019-10-08 15:51:05 -0400 |
commit | b803b1d7a3fa3145086ea168be49a5af2a71acf0 (patch) | |
tree | 4dc3f4670ac347da9cd58f6945c2695672bc5fd0 | |
parent | dd6f300e1a1d1e1a18d2491efd059e7e3b0f4e6d (diff) | |
download | ipc-b803b1d7a3fa3145086ea168be49a5af2a71acf0.tar.gz |
NotifySetup: Add return value check for cases not using Assert
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
-rw-r--r-- | packages/ti/sdo/ipc/family/am65xx/NotifySetup.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/ti/sdo/ipc/family/am65xx/NotifySetup.c b/packages/ti/sdo/ipc/family/am65xx/NotifySetup.c index 6e419cd..67265fc 100644 --- a/packages/ti/sdo/ipc/family/am65xx/NotifySetup.c +++ b/packages/ti/sdo/ipc/family/am65xx/NotifySetup.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017-2018 Texas Instruments Incorporated - http://www.ti.com + * Copyright (c) 2017-2019 Texas Instruments Incorporated - http://www.ti.com * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -339,6 +339,10 @@ Void NotifySetup_plugHwi(UInt16 remoteProcId, Int cpuIntrNum, #endif Assert_isTrue((retVal == 0), NotifySetup_A_error_resource_allocation); + /* Additional check to handle case when Assert is disabled */ + if (retVal != 0) { + return; + } /* map remote processor id to virtual id */ srcVirtId = VIRTID(remoteProcId); |