Commit 1e7eb31c authored by Balamurugan Ramar's avatar Balamurugan Ramar Committed by Jeff Johnson
Browse files

wifi: ath12k: Avoid deleting arvifs list when arvifs list is empty



In functions ath12k_mac_vdev_create() and ath12k_mac_vdev_create(),
while handling the vdev delete error case, arvifs list is deleted.
During that time, avoid deleting the arvifs list when the list is
empty to prevent the below warning.

[ 747.581356] ------------[ cut here ]------------
[ 747.587962] list_del corruption. prev->next should be ffffff800b55e850, but was ffffff80327470e0. (prev=ffffff80327470e0)
[ 747.592747] WARNING: CPU: 3 PID: 115 at lib/list_debug.c:62 __list_del_entry_valid_or_report+0xd4/0x100
[ 747.603580] Modules linked in: dvb_usb_af9035 dvb_usb_dib0700 dib0070 dib7000m dibx000_common at24 batman_adv ath12k nf_nat_sip qmi_helpers nf_conntrack_sip dwc3_qcom nf_nat_pptp nf_conntrack_pptp fbxphone_rtp_endpt fbxphone_le9641 fbxphone_fbxgw9r ipq_lpass fbxphone fbxkeys fbxserialinfo fbxhwinfo
[ 747.616940] CPU: 3 UID: 0 PID: 115 Comm: kworker/u20:1 Not tainted 6.13.0-01878-g771f776b11ae #180
[ 747.639170] Hardware name: Freebox FBXGW9R (DT)
[ 747.648195] Workqueue: events_unbound cfg80211_wiphy_work
[ 747.652622] pstate: 80000005 (Nzcv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[ 747.658179] pc : __list_del_entry_valid_or_report+0xd4/0x100
[ 747.664948] lr : __list_del_entry_valid_or_report+0xd4/0x100
[ 747.670851] sp : ffffffc082bdbcc0
[ 747.676491] x29: ffffffc082bdbcc0 x28: 0000000000000000 x27: 0000000000000000
[ 747.679706] x26: ffffff8007c9ae40 x25: ffffffc080f18140 x24: ffffff8034755d58
[ 747.686825] x23: ffffff80327470c8 x22: ffffff8034756200 x21: ffffff80327423e8
[ 747.687801] mhi mhi1: Requested to power ON
[ 747.693942] x20: ffffff800b55e800 x19: ffffff801e260000 x18: ffffffffffffffff
[ 747.693946] x17: 20747562202c3035 x16: 3865353562303038 x15: 6666666666662065
[ 747.693950] x14: ffffffc080f19368 x13: 0000000000000001 x12: 000000000000007e
[ 747.693954] x11: ffffffc080f19368 x10: 0000000000000248 x9 : ffffffc080fc9368
[ 747.693958] x8 : 00000000ffffdfff x7 : 0000000000000001 x6 : 0000000000000000
[ 747.693962] x5 : ffffff80bf9050c8 x4 : 0000000000000000 x3 : 0000000000000027
[ 747.693966] x2 : ffffff80bf9050d0 x1 : ffffff8002843e00 x0 : 0000000000000201
[ 747.693970] Call trace:
[ 747.693972] __list_del_entry_valid_or_report+0xd4/0x100 (P)
[ 747.693978] ath12k_mac_remove_link_interface.isra.0+0xf8/0x2e4 [ath12k]
[ 747.694000] ath12k_scan_vdev_clean_work+0x40/0x164 [ath12k]
[ 747.694015] cfg80211_wiphy_work+0xfc/0x100
[ 747.694021] process_one_work+0x164/0x2d0
[ 747.694028] worker_thread+0x254/0x380
[ 747.694032] kthread+0xfc/0x100
[ 747.694036] ret_from_fork+0x10/0x20
[ 747.694041] ---[ end trace 0000000000000000 ]---

Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.3.1-00173-QCAHKSWPL_SILICONZ-1

Signed-off-by: default avatarBalamurugan Ramar <quic_bramar@quicinc.com>
Signed-off-by: default avatarMaharaja Kennadyrajan <maharaja.kennadyrajan@oss.qualcomm.com>
Signed-off-by: default avatarRaj Kumar Bhagat <quic_rajkbhag@quicinc.com>
Signed-off-by: default avatarJeff Johnson <jeff.johnson@oss.qualcomm.com>
parent 90515c05
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment