Skip to content

Commit 9afc441

Browse files
committed
Merge tag 'staging-5.19-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging
Pull staging driver fixes from Greg KH: "Here are some small staging driver fixes for 5.19-rc3 that resolve reported issues: - remove visorbus.h which was forgotten in the -rc1 merge where the code that used it was removed - olpc_dcon: mark as broken to allow the DRM developers to evolve the fbdev api properly without having to deal with this obsolete driver. It will be removed soon if no one steps up to adopt it and fix the issues with it. - rtl8723bs driver fix - r8188eu driver fix to resolve many reports of the driver being broken with -rc1. All of these have been in linux-next for a while with no reported issues" * tag 'staging-5.19-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging: staging: Also remove the Unisys visorbus.h staging: rtl8723bs: Allocate full pwep structure staging: olpc_dcon: mark driver as broken staging: r8188eu: Fix warning of array overflow in ioctl_linux.c staging: r8188eu: fix rtw_alloc_hwxmits error detection for now
2 parents 62dcd5e + cd756da commit 9afc441

5 files changed

Lines changed: 11 additions & 363 deletions

File tree

drivers/staging/olpc_dcon/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# SPDX-License-Identifier: GPL-2.0
22
config FB_OLPC_DCON
33
tristate "One Laptop Per Child Display CONtroller support"
4-
depends on OLPC && FB
4+
depends on OLPC && FB && BROKEN
55
depends on I2C
66
depends on GPIO_CS5535 && ACPI
77
select BACKLIGHT_CLASS_DEVICE

drivers/staging/r8188eu/core/rtw_xmit.c

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,7 @@ s32 _rtw_init_xmit_priv(struct xmit_priv *pxmitpriv, struct adapter *padapter)
178178

179179
pxmitpriv->free_xmit_extbuf_cnt = num_xmit_extbuf;
180180

181-
res = rtw_alloc_hwxmits(padapter);
182-
if (res) {
181+
if (rtw_alloc_hwxmits(padapter)) {
183182
res = _FAIL;
184183
goto exit;
185184
}
@@ -1483,19 +1482,10 @@ int rtw_alloc_hwxmits(struct adapter *padapter)
14831482

14841483
hwxmits = pxmitpriv->hwxmits;
14851484

1486-
if (pxmitpriv->hwxmit_entry == 5) {
1487-
hwxmits[0] .sta_queue = &pxmitpriv->bm_pending;
1488-
hwxmits[1] .sta_queue = &pxmitpriv->vo_pending;
1489-
hwxmits[2] .sta_queue = &pxmitpriv->vi_pending;
1490-
hwxmits[3] .sta_queue = &pxmitpriv->bk_pending;
1491-
hwxmits[4] .sta_queue = &pxmitpriv->be_pending;
1492-
} else if (pxmitpriv->hwxmit_entry == 4) {
1493-
hwxmits[0] .sta_queue = &pxmitpriv->vo_pending;
1494-
hwxmits[1] .sta_queue = &pxmitpriv->vi_pending;
1495-
hwxmits[2] .sta_queue = &pxmitpriv->be_pending;
1496-
hwxmits[3] .sta_queue = &pxmitpriv->bk_pending;
1497-
} else {
1498-
}
1485+
hwxmits[0].sta_queue = &pxmitpriv->vo_pending;
1486+
hwxmits[1].sta_queue = &pxmitpriv->vi_pending;
1487+
hwxmits[2].sta_queue = &pxmitpriv->be_pending;
1488+
hwxmits[3].sta_queue = &pxmitpriv->bk_pending;
14991489

15001490
return 0;
15011491
}

drivers/staging/r8188eu/os_dep/ioctl_linux.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ static int wpa_set_encryption(struct net_device *dev, struct ieee_param *param,
403403

404404
if (wep_key_len > 0) {
405405
wep_key_len = wep_key_len <= 5 ? 5 : 13;
406-
wep_total_len = wep_key_len + FIELD_OFFSET(struct ndis_802_11_wep, KeyMaterial);
406+
wep_total_len = wep_key_len + sizeof(*pwep);
407407
pwep = kzalloc(wep_total_len, GFP_KERNEL);
408408
if (!pwep)
409409
goto exit;

drivers/staging/rtl8723bs/os_dep/ioctl_linux.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ static int wpa_set_encryption(struct net_device *dev, struct ieee_param *param,
9090
if (wep_key_len > 0) {
9191
wep_key_len = wep_key_len <= 5 ? 5 : 13;
9292
wep_total_len = wep_key_len + FIELD_OFFSET(struct ndis_802_11_wep, key_material);
93-
pwep = kzalloc(wep_total_len, GFP_KERNEL);
93+
/* Allocate a full structure to avoid potentially running off the end. */
94+
pwep = kzalloc(sizeof(*pwep), GFP_KERNEL);
9495
if (!pwep) {
9596
ret = -ENOMEM;
9697
goto exit;
@@ -582,7 +583,8 @@ static int rtw_set_encryption(struct net_device *dev, struct ieee_param *param,
582583
if (wep_key_len > 0) {
583584
wep_key_len = wep_key_len <= 5 ? 5 : 13;
584585
wep_total_len = wep_key_len + FIELD_OFFSET(struct ndis_802_11_wep, key_material);
585-
pwep = kzalloc(wep_total_len, GFP_KERNEL);
586+
/* Allocate a full structure to avoid potentially running off the end. */
587+
pwep = kzalloc(sizeof(*pwep), GFP_KERNEL);
586588
if (!pwep)
587589
goto exit;
588590

0 commit comments

Comments
 (0)