mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 07:03:09 -04:00
qcacmn: Fix for kernel panic in rx path
Add Null check for peer before accessing the structure. Change-Id: Ic1b6e0c3a7a9aeecbc9aa9cc4a118e27726d94f2 CRs-Fixed: 2010214
This commit is contained in:
parent
2ee22c7240
commit
9fac863f73
1 changed files with 2 additions and 1 deletions
|
|
@ -326,6 +326,7 @@ dp_rx_null_q_desc_handle(struct dp_soc *soc, void *ring_desc,
|
|||
peer_id = hal_rx_mpdu_start_sw_peer_id_get(
|
||||
rx_desc->rx_buf_start);
|
||||
peer = dp_peer_find_by_id(soc, peer_id);
|
||||
|
||||
if (peer &&
|
||||
peer->rx_tid[tid].hw_qdesc_vaddr_unaligned == NULL) {
|
||||
/* IEEE80211_SEQ_MAX indicates invalid start_seq */
|
||||
|
|
@ -343,7 +344,7 @@ dp_rx_null_q_desc_handle(struct dp_soc *soc, void *ring_desc,
|
|||
qdf_nbuf_data(nbuf), 128, false);
|
||||
#endif /* NAPIER_EMULATION */
|
||||
|
||||
if (qdf_unlikely(peer->bss_peer)) {
|
||||
if (peer && qdf_unlikely(peer->bss_peer)) {
|
||||
QDF_TRACE(QDF_MODULE_ID_DP,
|
||||
QDF_TRACE_LEVEL_INFO,
|
||||
FL("received pkt with same src MAC"));
|
||||
|
|
|
|||
Loading…
Reference in a new issue