gpio: nomadik: Add missing IS_ERR() check
authorEthan Tidmore <ethantidmore06@gmail.com>
Sat, 14 Feb 2026 04:45:31 +0000 (22:45 -0600)
committerBartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Mon, 16 Feb 2026 11:09:48 +0000 (12:09 +0100)
commit58433885ee99e8c96757e82ccf6d50646c4dfe09
tree6ce0ca79f95b3298378de41657b43f573bdbc0f8
parentd70178215211a7c73ecabeb55eeb0f8ef002bcab
gpio: nomadik: Add missing IS_ERR() check

The function gpio_device_get_desc() can return an error pointer and is
not checked for one. Add check for error pointer.

Fixes: ddeb66d2cb10f ("gpio: nomadik: don't print out global GPIO numbers in debugfs callbacks")
Cc: stable@vger.kernel.org
Signed-off-by: Ethan Tidmore <ethantidmore06@gmail.com>
Link: https://patch.msgid.link/20260214044531.43539-1-ethantidmore06@gmail.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
drivers/gpio/gpio-nomadik.c