mbox series

[0/5] gpio: aggregator: Fix Smatch warnings

Message ID cover.1744452787.git.dan.carpenter@linaro.org
Headers show
Series gpio: aggregator: Fix Smatch warnings | expand

Message

Dan Carpenter April 12, 2025, 10:14 a.m. UTC
Fix some static checker warnings from Smatch:
https://github.com/error27/smatch

Dan Carpenter (5):
  gpio: aggregator: fix "_sysfs" prefix check in
    gpio_aggregator_make_group()
  gpio: aggregator: Fix gpio_aggregator_line_alloc() checking
  gpio: aggregator: Return an error if there are no GPIOs in
    gpio_aggregator_parse()
  gpio: aggregator: Fix error code in gpio_aggregator_activate()
  gpio: aggregator: Fix leak in gpio_aggregator_parse()

 drivers/gpio/gpio-aggregator.c | 21 ++++++++++++---------
 1 file changed, 12 insertions(+), 9 deletions(-)

Comments

Bartosz Golaszewski April 14, 2025, 8:26 p.m. UTC | #1
On Sat, 12 Apr 2025 13:14:53 +0300, Dan Carpenter wrote:
> Fix some static checker warnings from Smatch:
> https://github.com/error27/smatch
> 
> Dan Carpenter (5):
>   gpio: aggregator: fix "_sysfs" prefix check in
>     gpio_aggregator_make_group()
>   gpio: aggregator: Fix gpio_aggregator_line_alloc() checking
>   gpio: aggregator: Return an error if there are no GPIOs in
>     gpio_aggregator_parse()
>   gpio: aggregator: Fix error code in gpio_aggregator_activate()
>   gpio: aggregator: Fix leak in gpio_aggregator_parse()
> 
> [...]

Applied, thanks!

[1/5] gpio: aggregator: fix "_sysfs" prefix check in gpio_aggregator_make_group()
      https://git.kernel.org/brgl/linux/c/eebfcb98cdc0228f5e1b7407f9db1c602bd8e545
[2/5] gpio: aggregator: Fix gpio_aggregator_line_alloc() checking
      https://git.kernel.org/brgl/linux/c/2e8636ca340002f3ac31383622911a1aa75fb086
[3/5] gpio: aggregator: Return an error if there are no GPIOs in gpio_aggregator_parse()
      https://git.kernel.org/brgl/linux/c/db1baf69e563fc222a75c0add5c76f437c717ac0
[4/5] gpio: aggregator: Fix error code in gpio_aggregator_activate()
      https://git.kernel.org/brgl/linux/c/05b43de95add3d787a7a88378086bf01c10b3f40
[5/5] gpio: aggregator: Fix leak in gpio_aggregator_parse()
      https://git.kernel.org/brgl/linux/c/d945ff52642d98eb6fa191f88a9cfde729129395

Best regards,