diff options
| author | Bartosz Golaszewski <bartosz.golaszewski@linaro.org> | 2024-02-14 09:52:48 +0100 |
|---|---|---|
| committer | Bartosz Golaszewski <bartosz.golaszewski@linaro.org> | 2024-02-15 08:40:40 +0100 |
| commit | be91c19e47d1b9bf1ebd7ec4a859a50a53e54882 (patch) | |
| tree | 4a3afcab53c3877a72740b0487b1d3ce88016bc1 /net/unix/af_unix.c | |
| parent | 0d7fa0eda4e3ffe1b7ebc73b6ef81298bddda649 (diff) | |
gpio: sysfs: fix inverted pointer logic
The logic is inverted, we want to return if the chip *IS* NULL.
Fixes: d83cee3d2bb1 ("gpio: protect the pointer to gpio_chip in gpio_device with SRCU")
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Closes: https://lore.kernel.org/linux-gpio/15671341-0b29-40e0-b487-0a4cdc414d8e@moroto.mountain/
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
