[DTV00857290][[DTV][Coverity Scanned Code Defect] 15367: Out-of-bounds write]
[Description]
Fix coverity defects under mgmt/
i. Add null check for prMsgHdr before call MBOX_HNDL_MSG()
ii. Remove do-while loop style.
[Related CIDs]
CID2222659, CID2222658, CID2222657, CID2222656, CID2190618
Conflicts:
mgmt/p2p_role_fsm.c
Change-Id: I646a350e70d0165bffaae232915f375f165eb545
CR-Id: DTV00857290
Feature: misc
Signed-off-by: Awk Jiang <awk.jiang@mediatek.com>
(cherry picked from commit e7a5747b25d07496e0833d976460de17686ac578)
2 files changed