[PATCH 0/2] of: unittest gpio unittest error exposes tracking error

From: frowand . list
Date: Wed Mar 25 2020 - 21:47:14 EST


From: Frank Rowand <frank.rowand@xxxxxxxx>

kernel test robot reported "WARNING: held lock freed!" triggered by
unittest_gpio_remove().

This warning is from a bad kfree() call from an unexpected call to
unittest_gpio_remove(). The unexpected call is due to an error
with unittest overlay tracking.

Patch 1/2 fixes the kfree bug.

Patch 2/2 fixes the unittest overlay tracking bug.

Frank Rowand (2):
of: gpio unittest kfree() wrong object
of: some unittest overlays not untracked

drivers/of/unittest.c | 32 ++++++++++++++++++++++++--------
1 file changed, 24 insertions(+), 8 deletions(-)

--
Frank Rowand <frank.rowand@xxxxxxxx>