linux-stable/drivers/of
Frank Rowand e9aa8e5a72 of: gpio unittest kfree() wrong object
commit fb227f597d upstream.

kernel test robot reported "WARNING: held lock freed!" triggered by
unittest_gpio_remove().  unittest_gpio_remove() was unexpectedly
called due to an error in overlay tracking.  The remove had not
been tested because the gpio overlay removal tests have not been
implemented.

kfree() gdev instead of pdev.

Fixes: f4056e705b ("of: unittest: add overlay gpio test to catch gpio hog problem")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Frank Rowand <frank.rowand@sony.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-02-23 08:25:15 +01:00
..
unittest-data of: unittest: add overlay gpio test to catch gpio hog problem 2024-02-23 08:25:09 +01:00
address.c
base.c of: Fix double free in of_parse_phandle_with_args_map 2024-01-25 14:34:28 -08:00
device.c of: Fix modalias string generation 2023-05-17 11:35:47 +02:00
dynamic.c of: dynamic: Fix of_reconfig_get_state_change() return value documentation 2023-12-13 18:18:11 +01:00
fdt.c of: Add missing 'Return' section in kerneldoc comments 2023-12-13 18:18:11 +01:00
fdt_address.c
irq.c of: Add missing 'Return' section in kerneldoc comments 2023-12-13 18:18:11 +01:00
Kconfig of: Add OF_DMA_DEFAULT_COHERENT & select it on powerpc 2020-02-11 04:35:25 -08:00
kobj.c of: Don't allow __of_attached_node_sysfs() without CONFIG_SYSFS 2021-09-22 12:26:34 +02:00
Makefile
of_mdio.c of: mdio: Add of_node_put() when breaking out of for_each_xx 2022-09-28 11:04:06 +02:00
of_net.c
of_numa.c
of_private.h
of_reserved_mem.c of: Fix truncation of memory sizes on 32-bit platforms 2021-07-14 16:53:45 +02:00
overlay.c of: Add missing 'Return' section in kerneldoc comments 2023-12-13 18:18:11 +01:00
pdt.c
platform.c of: Add missing 'Return' section in kerneldoc comments 2023-12-13 18:18:11 +01:00
property.c of: Add missing 'Return' section in kerneldoc comments 2023-12-13 18:18:11 +01:00
resolver.c
unittest.c of: gpio unittest kfree() wrong object 2024-02-23 08:25:15 +01:00