mirror of
https://github.com/NVIDIA/open-gpu-kernel-modules.git
synced 2025-03-14 18:29:23 +01:00
1) ensure pKernelFifo->ppChidMgr[i]->pChanGrpTree is successfully allocated in function kfifoChidMgrConstruct_IMPL(), otherwise it may cause invalid memory access when calling mapFine(). 2) only invoke mapDestroy() when pKernelFifo->ppChidMgr[i]->pChanGrpTree is not NULL in function kfifoChidMgrDestruct_IMPL(), otherwise it may cause invalid memory access. 3) ensure pChidMgr is valid in function kfifoGetChannelGroup_IMPL(). Signed-off-by: Jiang Liu <gerry@linux.alibaba.com>