gpio: dwapb_gpio: Using wrong function to free memory
authorAndrew Goodbody <andrew.goodbody@linaro.org>
Fri, 25 Jul 2025 11:48:22 +0000 (12:48 +0100)
committerTom Rini <trini@konsulko.com>
Mon, 11 Aug 2025 21:11:22 +0000 (15:11 -0600)
commit916f4337d1d3db4d16040abff39a5f4419589ead
tree156eed22e9955a8bb2c62c59bb147386e246fcb7
parentbd644d9613ee0cdc3bd2ac3bc7bcc52b09d821e7
gpio: dwapb_gpio: Using wrong function to free memory

In gpio_dwapb_bind plat is used to reference memory allocated by
devm_kcalloc but it is attempted to be freed using kfree. Instead free
this memory using the correct devm_kfree function.

This issue was found by Smatch.

Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
Acked-by: Quentin Schulz <quentin.schulz@cherry.de>
drivers/gpio/dwapb_gpio.c