NVIDIA / open-gpu-kernel-modules

NVIDIA Linux open GPU kernel module source
Other
15.06k stars 1.25k forks source link

GPU/FIFO: avoid possible invalid memory accesses #657

Open jiangliu opened 3 months ago

jiangliu commented 3 months ago

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().

CLAassistant commented 3 months ago

CLA assistant check
All committers have signed the CLA.