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:
Himanshu Agarwal 2017-02-20 11:28:44 +05:30 • committed by qcabuildsw
commit d4fe5f748f

View file

@ -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;