summaryrefslogtreecommitdiff
path: root/drivers/staging/r8188eu/os_dep/ioctl_linux.c
diff options
context:
space:
mode:
authorPhillip Potter <phil@philpotter.co.uk>2022-05-21 21:47:41 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-06-06 08:09:21 +0200
commit5b7419ae1d208cab1e2826d473d8dab045aa75c7 (patch)
tree7851b1917294fd9d1d04b89c243ce6babfa8bab3 /drivers/staging/r8188eu/os_dep/ioctl_linux.c
parentf2906aa863381afb0015a9eb7fefad885d4e5a56 (diff)
staging: r8188eu: fix rtw_alloc_hwxmits error detection for now
In _rtw_init_xmit_priv, we use the res variable to store the error return from the newly converted rtw_alloc_hwxmits function. Sadly, the calling function interprets res using _SUCCESS and _FAIL still, meaning we change the semantics of the variable, even in the success case. This leads to the following on boot: r8188eu 1-2:1.0: _rtw_init_xmit_priv failed In the long term, we should reverse these semantics, but for now, this fixes the driver. Also, inside rtw_alloc_hwxmits remove the if blocks, as HWXMIT_ENTRY is always 4. Fixes: f94b47c6bde6 ("staging: r8188eu: add check for kzalloc") Signed-off-by: Phillip Potter <phil@philpotter.co.uk> Link: https://lore.kernel.org/r/20220521204741.921-1-phil@philpotter.co.uk Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/r8188eu/os_dep/ioctl_linux.c')
0 files changed, 0 insertions, 0 deletions