diff options
author | 2023-01-31 10:00:57 +0100 | |
---|---|---|
committer | 2023-02-06 10:44:38 +0100 | |
commit | c6dd307144235f2abd97c974883398176345af9f (patch) | |
tree | 89e0ca24dfe78d06153ccbf82719db5ac662ae5d /tools/perf/scripts/python/export-to-postgresql.py | |
parent | staging: vc04_services: mmal-vchiq: fix typo in comment (diff) | |
download | wireguard-linux-c6dd307144235f2abd97c974883398176345af9f.tar.xz wireguard-linux-c6dd307144235f2abd97c974883398176345af9f.zip |
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>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions