diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2023-08-22 12:22:34 +0200 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2023-08-23 14:35:45 -0500 |
commit | 02dfc6acea1ca652cacfc92f4231f058f84f0a73 (patch) | |
tree | 0069c94de5f2af3985c955857847e47090897568 /drivers/of | |
parent | 26409dd045892904b059dc411403e9c8ce7543ca (diff) | |
download | linux-stable-02dfc6acea1ca652cacfc92f4231f058f84f0a73.tar.gz linux-stable-02dfc6acea1ca652cacfc92f4231f058f84f0a73.tar.bz2 linux-stable-02dfc6acea1ca652cacfc92f4231f058f84f0a73.zip |
of: unittest: Run overlay apply/revert sequence three times
Run the test for the overlay apply/revert sequence three times, to
test if there are unbalanced of_node_put() calls causing reference
counts to become negative.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/a9fb4eb560c58d11a7f167bc78a137b46e76cf15.1692699743.git.geert+renesas@glider.be
Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'drivers/of')
-rw-r--r-- | drivers/of/unittest.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/of/unittest.c b/drivers/of/unittest.c index 939e33afc668..33c20edcc92c 100644 --- a/drivers/of/unittest.c +++ b/drivers/of/unittest.c @@ -3066,6 +3066,7 @@ static void __init of_unittest_overlay_notify(void) static void __init of_unittest_overlay(void) { struct device_node *bus_np = NULL; + unsigned int i; if (platform_driver_register(&unittest_driver)) { unittest(0, "could not register unittest driver\n"); @@ -3103,7 +3104,8 @@ static void __init of_unittest_overlay(void) of_unittest_overlay_2(); of_unittest_overlay_3(); of_unittest_overlay_4(); - of_unittest_overlay_5(); + for (i = 0; i < 3; i++) + of_unittest_overlay_5(); of_unittest_overlay_6(); of_unittest_overlay_8(); |