]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
gpio: nomadik: Add missing IS_ERR() check
authorEthan Tidmore <ethantidmore06@gmail.com>
Sat, 14 Feb 2026 04:45:31 +0000 (22:45 -0600)
committerSasha Levin <sashal@kernel.org>
Wed, 4 Mar 2026 12:21:32 +0000 (07:21 -0500)
commit89f3d2d5413514037f1e285f4bcfcf622b5b667e
tree7e809c84c9e394f8c4cca467d12a9a7ee4c39ed5
parent7c9ce68192eef14c777cb6ce17155d2eb2431aea
gpio: nomadik: Add missing IS_ERR() check

[ Upstream commit 58433885ee99e8c96757e82ccf6d50646c4dfe09 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpio/gpio-nomadik.c