linux-stable/drivers/staging/rtl8192e
Haowen Bai 97042d0a75 staging: rtl8192e: Fix signedness bug in rtllib_rx_assoc_resp()
The rtllib_rx_assoc_resp() function has a signedness bug because it's
a declared as a u16 but it return -ENOMEM.  When you look at it more
closely it returns a mix of error codes including 0xcafe, -ENOMEM, and
a->status which is WLAN_STATUS_NOT_SUPPORTED_AUTH_ALG.  This is a mess.

Clean it up to just return standard kernel error codes.  We can print
out the a->status before returning a regular error code.  The printks
in the caller need to be adjusted as well.

Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Haowen Bai <baihaowen@meizu.com>
Link: https://lore.kernel.org/r/1650529277-7893-1-git-send-email-baihaowen@meizu.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-04-22 16:42:30 +02:00
..
rtl8192e staging: rtl8192e: Remove space after cast 2022-04-20 18:47:25 +02:00
dot11d.c
dot11d.h
Kconfig staging: rtl8192e: fix kconfig dependency on CRYPTO 2021-03-10 09:23:28 +01:00
Makefile
rtl819x_BA.h staging: rtl8192e: reformat ba_record struct 2021-03-10 09:25:28 +01:00
rtl819x_BAProc.c staging: rtl8192e: Remove space after cast 2022-04-20 18:47:25 +02:00
rtl819x_HT.h staging: rtl8192e: reformat bss_ht struct 2021-03-10 09:25:30 +01:00
rtl819x_HTProc.c staging: rtl8192e: replace comparison to NULL by bool 2021-05-10 11:19:34 +02:00
rtl819x_Qos.h
rtl819x_TS.h staging: rtl8192e: reformat rx_ts_record struct 2021-03-10 09:25:32 +01:00
rtl819x_TSProc.c staging: rtl8192e: remove unnecessary blank line before brace 2021-04-14 10:30:55 +02:00
rtllib.h staging/rtl8192e,ieee80211: replace ps tasklet with work 2022-04-12 15:53:51 +02:00
rtllib_crypt_ccmp.c staging: rtl8192e: Remove space after cast 2022-04-20 18:47:25 +02:00
rtllib_crypt_tkip.c staging: rtl8192e: Remove space after cast 2022-04-20 18:47:25 +02:00
rtllib_crypt_wep.c mm: remove kzfree() compatibility definition 2020-10-25 11:39:02 -07:00
rtllib_debug.h staging: rtl8192e: use BIT macro instead of left shifting 2022-02-21 18:13:37 +01:00
rtllib_module.c staging: rtl8192e: rtllib_module: remove unnecessary assignment 2021-12-03 15:09:49 +01:00
rtllib_rx.c staging: rtl8192e: Remove space after cast 2022-04-20 18:47:25 +02:00
rtllib_softmac.c staging: rtl8192e: Fix signedness bug in rtllib_rx_assoc_resp() 2022-04-22 16:42:30 +02:00
rtllib_softmac_wx.c staging: rtl8192e: Remove space after cast 2022-04-20 18:47:25 +02:00
rtllib_tx.c staging: rtl8192e: Fix shadowed variable name 2021-05-25 18:23:32 +02:00
rtllib_wx.c staging: rtl8192e: Remove space after cast 2022-04-20 18:47:25 +02:00
TODO