diff options
author | Bartosz Golaszewski <[email protected]> | 2024-02-16 11:59:30 +0100 |
---|---|---|
committer | Bartosz Golaszewski <[email protected]> | 2024-02-16 14:20:07 +0100 |
commit | 91510d5959ad9eac451685e3bfc8385b89c23908 (patch) | |
tree | a11ee7f13d7c279250f4a059a2f4e0b5a1507c21 /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | 8ff0d55ba3fb56b69e40c50ff030a77c27a072ca (diff) |
gpio: cdev: fix a NULL-pointer dereference with DEBUG enabled
We are actually passing the gc pointer to chip_dbg() so we have to
srcu_dereference() it.
Fixes: 8574b5b47610 ("gpio: cdev: use correct pointer accessors with SRCU")
Reported-by: Marek Szyprowski <[email protected]>
Closes: https://lore.kernel.org/lkml/[email protected]/
Signed-off-by: Bartosz Golaszewski <[email protected]>
Tested-by: Marek Szyprowski <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions