Fix Coverity Scan CID 340268 (Passing freed pointer pdu_mem_pP as an argument to rlc_um_store_pdu_in_dar_buffer.)
This commit is contained in:
@@ -1038,6 +1038,8 @@ rlc_um_receive_process_dar (
|
|||||||
sn = pdu_pP->b1 & 0x1F;
|
sn = pdu_pP->b1 & 0x1F;
|
||||||
} else {
|
} else {
|
||||||
free_mem_block(pdu_mem_pP, __func__);
|
free_mem_block(pdu_mem_pP, __func__);
|
||||||
|
pdu_mem_pP = NULL;
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
RLC_UM_MUTEX_LOCK(&rlc_pP->lock_dar_buffer, ctxt_pP, rlc_pP);
|
RLC_UM_MUTEX_LOCK(&rlc_pP->lock_dar_buffer, ctxt_pP, rlc_pP);
|
||||||
|
|||||||
Reference in New Issue
Block a user