Explorar o código

msm: ipa: Free memory when WLAN messages need to be ignored

Changes to free memory buffer before returning failure, when WLAN
connectivity related events are ignored due to opt WLAN datapath
enablement

Change-Id: Ie747386416e3a956b5bff88387217e10b351f5e0
Signed-off-by: Chaitanya Pratapa <[email protected]>
Arjun Haris %!s(int64=2) %!d(string=hai) anos
pai
achega
569e9d4eb4
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      drivers/platform/msm/ipa/ipa_v3/ipa_intf.c

+ 2 - 0
drivers/platform/msm/ipa/ipa_v3/ipa_intf.c

@@ -520,6 +520,8 @@ int ipa_send_msg(struct ipa_msg_meta *meta, void *buff,
 	if (ipa3_ctx->ipa_wdi_opt_dpath && WLAN_IPA_EVENT(meta->msg_type)) {
 		IPAERR_RL("Opt data path enabled, ignore message type %d\n",
 			meta->msg_type);
+		if (buff)
+			callback(buff, meta->msg_len, meta->msg_type);
 		return 0;
 	}