android_kernel_xiaomi_sm8350/os_if/tdls
Bala Venkatesh c218b38a16 qcacld-3.0: Avoid NULL pointer access in wlan_cfg80211_tdls_add_peer
In function wlan_cfg80211_tdls_add_peer, osif_tdls
is allocated only for STA and P2P CLI vdevs. So if tdls connection is in
progress on p2p_client vdev and at the same time if the driver gets the
change iface for p2p client to p2p device, p2p device vdev is created
with the same mac address replacing the p2p client vdev.
Now if supplicant issues add_station command after change_iface
on p2p interface, it tries to access osif_tdls pointer which is not
allocated for p2p device vdev. This can lead to NULL pointer access
of osif_tdls.

Add check for NULL pointer before accessing osif_tdls pointer
for adding station command.

Change-Id: I2cd63d4d758af360987e1563022918548d113d76
CRs-Fixed: 2464766
2019-06-06 13:02:11 -07:00
..
inc qcacld-3.0: Pass psoc instead of vdev for teardown links 2019-06-03 02:26:54 -07:00
src qcacld-3.0: Avoid NULL pointer access in wlan_cfg80211_tdls_add_peer 2019-06-06 13:02:11 -07:00