summaryrefslogtreecommitdiff
path: root/fs/devfs/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorFelix Gu <ustc.gu@gmail.com>2026-03-20 22:56:38 +0800
committerBartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>2026-03-23 11:06:38 +0100
commit8de4e0f44c638c66cdc5eeb4d5ab9acd61c31e4f (patch)
treec0b29f1cec29a7b086ac92efd2b8dc7f4f7c98a5 /fs/devfs/git@git.tavy.me:linux.git
parentec42a3a90ae9ae64b16d01a2e5d32ec0865ca8cf (diff)
gpio: qixis-fpga: Fix error handling for devm_regmap_init_mmio()
devm_regmap_init_mmio() returns an ERR_PTR() on failure, not NULL. The original code checked for NULL which would never trigger on error, potentially leading to an invalid pointer dereference. Use IS_ERR() and PTR_ERR() to properly handle the error case. Fixes: e88500247dc3 ("gpio: add QIXIS FPGA GPIO controller") Signed-off-by: Felix Gu <ustc.gu@gmail.com> Link: https://patch.msgid.link/20260320-qixis-v1-1-a8efc22e8945@gmail.com Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Diffstat (limited to 'fs/devfs/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions