]> www.infradead.org Git - users/jedix/linux-maple.git/commit
gpio: aggregator: Fix gpio_aggregator_line_alloc() checking
authorDan Carpenter <dan.carpenter@linaro.org>
Sat, 12 Apr 2025 10:15:08 +0000 (13:15 +0300)
committerBartosz Golaszewski <brgl@bgdev.pl>
Mon, 14 Apr 2025 20:25:20 +0000 (22:25 +0200)
commit2e8636ca340002f3ac31383622911a1aa75fb086
treefa915d68adb8318385302efe22b65b080c0396e7
parenteebfcb98cdc0228f5e1b7407f9db1c602bd8e545
gpio: aggregator: Fix gpio_aggregator_line_alloc() checking

The gpio_aggregator_line_alloc() function returns error pointers, but
the callers check for NULL.  Update the error checking in the callers.

Fixes: 83c8e3df642f ("gpio: aggregator: expose aggregator created via legacy sysfs to configfs")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Acked-by: Koichiro Den <koichiro.den@canonical.com>
Link: https://lore.kernel.org/r/cc71d8cf6e9bb4bb8cd9ae5050100081891d9345.1744452787.git.dan.carpenter@linaro.org
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
drivers/gpio/gpio-aggregator.c