diff options
| author | Himanshu Agarwal <himanaga@codeaurora.org> | 2017-02-20 11:28:44 +0530 |
|---|---|---|
| committer | qcabuildsw <qcabuildsw@localhost> | 2017-02-21 21:21:14 -0800 |
| commit | c15aa85d40c2463918473b27e135bcb7c190414f (patch) | |
| tree | ed61773dee7ecb7d1e7a428b1a3200f13506a869 | |
| parent | c166c54476061299e286c8c3b3f2e8a5b5cabf6b (diff) | |
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
| -rw-r--r-- | core/dp/htt/htt_rx.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/dp/htt/htt_rx.c b/core/dp/htt/htt_rx.c index c0e0ec442aa3..1b1b25e730b7 100644 --- a/core/dp/htt/htt_rx.c +++ b/core/dp/htt/htt_rx.c @@ -2328,6 +2328,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; |
