Browse Source

qcacld-3.0: Peer leak while process the action frame

Currently, while processing EHT protected action frames for action
id as EHT_T2LM_REQUEST, driver takes the peer reference but never
release it. This causes peer leak.

So, to fix this, release peer reference if peer is not null.

Change-Id: I826bfff3510e3b6ea4ce63762cac4bfc689dad4f
CRs-Fixed: 3406567
Rahul Gusain 2 years ago
parent
commit
0b2d42188a
1 changed files with 3 additions and 0 deletions
  1. 3 0
      core/mac/src/pe/lim/lim_process_action_frame.c

+ 3 - 0
core/mac/src/pe/lim/lim_process_action_frame.c

@@ -2193,6 +2193,9 @@ void lim_process_action_frame(struct mac_context *mac_ctx,
 			action_hdr->category);
 		break;
 	}
+
+	if (peer)
+		wlan_objmgr_peer_release_ref(peer, WLAN_LEGACY_MAC_ID);
 }
 
 /**