From 57bd21c563f2d55e707fdd15f128726a2fb61560 Mon Sep 17 00:00:00 2001 From: Larry Finger Date: Sun, 9 Apr 2023 12:54:37 -0500 Subject: [PATCH] rtl8188eu: Possible fix for iwd crash Signed-off-by: Larry Finger --- ioctl_cfg80211.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ioctl_cfg80211.c b/ioctl_cfg80211.c index e2fee1d..895acc2 100644 --- a/ioctl_cfg80211.c +++ b/ioctl_cfg80211.c @@ -2023,6 +2023,8 @@ static int rtw_cfg80211_set_probe_req_wpsp2pie(_adapter *padapter, char *buf, in RTW_INFO("%s, ielen=%d\n", __func__, len); #endif + if (!pmlmepriv) + return -EINVAL; if (len > 0) { wps_ie = rtw_get_wps_ie(buf, len, NULL, &wps_ielen); if (wps_ie) {