diff options
author | Bartosz Golaszewski <[email protected]> | 2024-02-14 09:44:18 +0100 |
---|---|---|
committer | Bartosz Golaszewski <[email protected]> | 2024-02-15 08:39:25 +0100 |
commit | d82b9e0887e69d9060c854b079a3a5024788f7cb (patch) | |
tree | 56e73a4e1f84fa9c59de78ae222fc44cef080136 /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | 8574b5b47610df22048adcdabf318ca983024f28 (diff) |
gpio: use srcu_dereference() with SRCU-protected pointers
Lockdep with CONFIG_PROVE_RCU enabled reports false positives about
suspicious rcu_dereference() usage. Let's silence it by using
srcu_dereference() which is the correct helper with SRCU.
Fixes: d83cee3d2bb1 ("gpio: protect the pointer to gpio_chip in gpio_device with SRCU")
Reported-by: kernel test robot <[email protected]>
Closes: https://lore.kernel.org/oe-lkp/[email protected]
Signed-off-by: Bartosz Golaszewski <[email protected]>
Acked-by: Paul E. McKenney <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions