linux-stable/drivers/staging/r8188eu
Martin Kaiser c6dd307144 staging: r8188eu: clean up NULL check for rcu pointer
Clean up the NULL check for padapter->pnetdev->rx_handler_data.

The current code calls rcu_dereference while it holds the rcu read lock
and checks the pointer after releasing the lock. An rcu pointer may only be
used between calls to rcu_read_lock and rcu_read_unlock.

Replace the check with rcu_access_pointer. My understanding is that this
function returns the value of the pointer and needs no locking. We can
then check the pointer but we must not dereference it.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20230131090057.241779-1-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-02-06 10:44:38 +01:00
..
core staging: r8188eu: clean up NULL check for rcu pointer 2023-02-06 10:44:38 +01:00
hal staging: r8188eu: make sta_pending a list_head 2023-01-31 11:16:56 +01:00
include staging: r8188eu: option in struct sta_xmit_priv is not used 2023-01-31 11:16:57 +01:00
os_dep staging: r8188eu: replace switch-case with if 2023-01-31 11:16:57 +01:00
Kconfig
Makefile staging: r8188eu: remove hal/odm_RegConfig8188E.c 2022-09-27 10:28:11 +02:00
TODO