From b803b1d7a3fa3145086ea168be49a5af2a71acf0 Mon Sep 17 00:00:00 2001 From: Sam Nelson Date: Mon, 7 Oct 2019 15:31:25 -0400 Subject: [PATCH] NotifySetup: Add return value check for cases not using Assert Signed-off-by: Sam Nelson --- packages/ti/sdo/ipc/family/am65xx/NotifySetup.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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); -- 2.39.2