mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 00:24:41 -04:00
qcacmn: Check NULL before derefencing pPacket from htc_packet_dequeue
Add NULL check for pPacket returned from htc_packet_dequeue before dereferencing it. Change-Id: I30c4fb3a4bc6652396795305c3b8a23bba88922a CRs-fixed: 2009829
This commit is contained in:
parent
110bf96741
commit
81967e04f3
1 changed files with 3 additions and 0 deletions
|
|
@ -114,6 +114,9 @@ static void do_recv_completion(HTC_ENDPOINT *pEndpoint,
|
|||
("HTC ep %d has NULL recv callback on packet %p\n",
|
||||
pEndpoint->Id,
|
||||
pPacket));
|
||||
if (pPacket)
|
||||
qdf_nbuf_free(
|
||||
pPacket->pPktContext);
|
||||
continue;
|
||||
}
|
||||
AR_DEBUG_PRINTF(ATH_DEBUG_RECV,
|
||||
|
|
|
|||
Loading…
Reference in a new issue