[PATCHv2 12/18] DSPBRIDGE: support loading 4 dependent DLL

Omar Ramirez Luna
2009-12-17T02:08:49Z

From: Fernando Guzman Lugo <x0095840@ti.com>

This patch fixes loading a SN that has 4 dependent DLLs, previously
it was failing due to a non-null terminated string.

Signed-off-by: Fernando Guzman Lugo <x0095840@ti.com>
---
drivers/dsp/bridge/rmgr/dbdcd.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/dsp/bridge/rmgr/dbdcd.c b/drivers/dsp/bridge/rmgr/dbdcd.c
index b1391e2..fb06ff2 100644
--- a/drivers/dsp/bridge/rmgr/dbdcd.c
+++ b/drivers/dsp/bridge/rmgr/dbdcd.c
@@ -1529,7 +1529,7 @@ static DSP_STATUS GetDepLibInfo(IN struct DCD_MANAGER *hDcdMgr,
goto func_cont;

/* Allocate zeroed buffer. */
- pszCoffBuf = MEM_Calloc(ulLen, MEM_PAGED);
+ pszCoffBuf = MEM_Calloc(ulLen + 4, MEM_PAGED);
if (pszCoffBuf == NULL)
status = DSP_EMEMORY;

--
1.6.2.4