From 359c3baf2079fc0759c62738f4470503a2d66026 Mon Sep 17 00:00:00 2001 From: Rajeev Kumar Date: Mon, 8 Apr 2019 15:40:07 -0700 Subject: [PATCH] qcacld-3.0: fix wlan_ipa_send_to_nw type The only function called through this pointer type doesn't return a value and the caller doesn't check for a return value. Change the function pointer type to return void to fix a CFI failure due to a type mismatch: CFI failure (target: [] hdd_ipa_send_skb_to_network+0x0/0x4 [wlan]): ... Call trace: __ubsan_handle_cfi_check_fail+0x50/0x58 __cfi_check+0x31fa0/0x3d5a4 [wlan] wlan_ipa_w2i_cb+0x5fc/0x8fc [wlan] ... Change-Id: I94f6bb0fc06acebde12cf80294999d9419296c4a CRs-Fixed: 2431600 --- components/ipa/core/inc/wlan_ipa_priv.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/ipa/core/inc/wlan_ipa_priv.h b/components/ipa/core/inc/wlan_ipa_priv.h index f36f4aa8c2f2..7cec583dbc9c 100644 --- a/components/ipa/core/inc/wlan_ipa_priv.h +++ b/components/ipa/core/inc/wlan_ipa_priv.h @@ -567,7 +567,7 @@ struct wlan_ipa_tx_desc { }; typedef int (*wlan_ipa_softap_xmit)(qdf_nbuf_t skb, qdf_netdev_t dev); -typedef int (*wlan_ipa_send_to_nw)(qdf_nbuf_t skb, qdf_netdev_t dev); +typedef void (*wlan_ipa_send_to_nw)(qdf_nbuf_t skb, qdf_netdev_t dev); /* IPA private context structure definition */ struct wlan_ipa_priv {