mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
Staging driver fixes for 7.2-rc5
Here are two small staging driver fixes for 7.2-rc5. They both resolve some reported bugs in the rtl8723bs staging driver and have been in linux-next for over a week with no reported issues. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> -----BEGIN PGP SIGNATURE----- iG0EABECAC0WIQT0tgzFv3jCIUoxPcsxR9QN2y37KQUCamYAxA8cZ3JlZ0Brcm9h aC5jb20ACgkQMUfUDdst+ylfoQCghy7Exq7vpWMlhR8LwQucWqABsxsAnjzK86WN 8VZ68CMngObWMPH31Dx7 =sWD7 -----END PGP SIGNATURE----- Merge tag 'staging-7.2-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging Pull staging driver fixes from Greg KH: "Here are two small staging driver fixes for 7.2-rc5. They both resolve some reported bugs in the rtl8723bs staging driver and have been in linux-next for over a week with no reported issues" * tag 'staging-7.2-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging: staging: rtl8723bs: fix OOB reads in rtw_get_wps_ie() staging: rtl8723bs: fix inverted HT40 secondary channel offset
This commit is contained in:
commit
516e2cb010
|
|
@ -670,7 +670,14 @@ u8 *rtw_get_wps_ie(u8 *in_ie, uint in_len, u8 *wps_ie, uint *wps_ielen)
|
|||
while (cnt < in_len) {
|
||||
eid = in_ie[cnt];
|
||||
|
||||
if ((eid == WLAN_EID_VENDOR_SPECIFIC) && (!memcmp(&in_ie[cnt + 2], wps_oui, 4))) {
|
||||
if (cnt + 2 > in_len)
|
||||
break;
|
||||
|
||||
if (in_ie[cnt + 1] + 2 > in_len - cnt)
|
||||
break;
|
||||
|
||||
if ((eid == WLAN_EID_VENDOR_SPECIFIC) && (in_ie[cnt + 1] >= 4) &&
|
||||
(!memcmp(&in_ie[cnt + 2], wps_oui, 4))) {
|
||||
wpsie_ptr = &in_ie[cnt];
|
||||
|
||||
if (wps_ie)
|
||||
|
|
|
|||
|
|
@ -1957,7 +1957,7 @@ static u8 rtw_get_chan_type(struct adapter *adapter)
|
|||
else
|
||||
return NL80211_CHAN_NO_HT;
|
||||
case CHANNEL_WIDTH_40:
|
||||
if (mlme_ext->cur_ch_offset == HAL_PRIME_CHNL_OFFSET_UPPER)
|
||||
if (mlme_ext->cur_ch_offset == HAL_PRIME_CHNL_OFFSET_LOWER)
|
||||
return NL80211_CHAN_HT40PLUS;
|
||||
else
|
||||
return NL80211_CHAN_HT40MINUS;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user