1
0
mirror of https://github.com/aircrack-ng/rtl8812au.git synced 2024-09-19 20:50:41 +00:00

Allow a little extra size for rtw_hostapd_ioctl() packets

This commit is contained in:
kimocoder 2020-07-12 01:07:28 +00:00
parent 8d4ac74d47
commit c2668290e3

View File

@ -7721,7 +7721,7 @@ static int rtw_hostapd_ioctl(struct net_device *dev, struct iw_point *p)
if (!rtw_is_hw_init_completed(padapter))
return -EPERM;
if (!p->pointer || p->length != sizeof(struct ieee_param))
if (!p->pointer || p->length != (sizeof(struct ieee_param) + 100))
return -EINVAL;
param = (struct ieee_param *)rtw_malloc(p->length);