mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 22:23:14 -04:00
qcacld-3.0: Avoid NULL pointer dereferencing of mpdu_buf
Avoid NULL pointer dereferencing of mpdu_buf by putting NULL check before using it in htt_rx_restitch_mpdu_from_msdus func. Change-Id: I726891d4fc1f6928cbda911932dbbcd2ec681b63 CRs-Fixed: 2008901
This commit is contained in:
parent
d99accb513
commit
d4fe5f748f
1 changed files with 3 additions and 0 deletions
|
|
@ -2223,6 +2223,9 @@ htt_rx_restitch_mpdu_from_msdus(htt_pdev_handle pdev,
|
|||
else
|
||||
mpdu_buf = qdf_nbuf_clone(head_msdu);
|
||||
|
||||
if (!mpdu_buf)
|
||||
goto mpdu_stitch_fail;
|
||||
|
||||
prev_buf = mpdu_buf;
|
||||
|
||||
frag_list_sum_len = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue