Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
- drivers/of/unittest.c | 7 +++++--
+ drivers/of/unittest.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
-diff --git a/drivers/of/unittest.c b/drivers/of/unittest.c
-index aaec4a9fa2bc4..e7e6dd07f2150 100644
--- a/drivers/of/unittest.c
+++ b/drivers/of/unittest.c
-@@ -891,10 +891,13 @@ static void __init of_unittest_platform_populate(void)
+@@ -887,10 +887,13 @@ static void __init of_unittest_platform_
of_platform_populate(np, match, NULL, &test_bus->dev);
for_each_child_of_node(np, child) {
}
of_platform_depopulate(&test_bus->dev);
---
-2.20.1
-
+++ /dev/null
-From b3fb36ed694b05738d45218ea72cf7feb10ce2b1 Mon Sep 17 00:00:00 2001
-From: Frank Rowand <frank.rowand@sony.com>
-Date: Thu, 16 Apr 2020 16:42:46 -0500
-Subject: of: unittest: kmemleak on changeset destroy
-
-From: Frank Rowand <frank.rowand@sony.com>
-
-commit b3fb36ed694b05738d45218ea72cf7feb10ce2b1 upstream.
-
-kmemleak reports several memory leaks from devicetree unittest.
-This is the fix for problem 1 of 5.
-
-of_unittest_changeset() reaches deeply into the dynamic devicetree
-functions. Several nodes were left with an elevated reference
-count and thus were not properly cleaned up. Fix the reference
-counts so that the memory will be freed.
-
-Fixes: 201c910bd689 ("of: Transactional DT support.")
-Reported-by: Erhard F. <erhard_f@mailbox.org>
-Signed-off-by: Frank Rowand <frank.rowand@sony.com>
-Signed-off-by: Rob Herring <robh@kernel.org>
-Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-
----
- drivers/of/unittest.c | 4 ++++
- 1 file changed, 4 insertions(+)
-
---- a/drivers/of/unittest.c
-+++ b/drivers/of/unittest.c
-@@ -605,6 +605,10 @@ static void __init of_unittest_changeset
- unittest(!of_changeset_revert(&chgset), "revert failed\n");
-
- of_changeset_destroy(&chgset);
-+
-+ of_node_put(n1);
-+ of_node_put(n2);
-+ of_node_put(n21);
- #endif
- }
-
netfilter-nf_tables-report-eopnotsupp-on-unsupported-flags-object-type.patch
irqchip-mbigen-free-msi_desc-on-device-teardown.patch
alsa-hda-don-t-release-card-at-firmware-loading-error.patch
-of-unittest-kmemleak-on-changeset-destroy.patch
lib-raid6-use-vdupq_n_u8-to-avoid-endianness-warnings.patch
video-fbdev-sis-remove-unnecessary-parentheses-and-commented-code.patch
drm-null-pointer-dereference-cwe-476-problem.patch
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
- drivers/of/unittest.c | 7 +++++--
+ drivers/of/unittest.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
-diff --git a/drivers/of/unittest.c b/drivers/of/unittest.c
-index 1ee2474fa8fbb..109497dbfba08 100644
--- a/drivers/of/unittest.c
+++ b/drivers/of/unittest.c
-@@ -816,10 +816,13 @@ static void __init of_unittest_platform_populate(void)
+@@ -812,10 +812,13 @@ static void __init of_unittest_platform_
of_platform_populate(np, match, NULL, &test_bus->dev);
for_each_child_of_node(np, child) {
}
of_platform_depopulate(&test_bus->dev);
---
-2.20.1
-
+++ /dev/null
-From b3fb36ed694b05738d45218ea72cf7feb10ce2b1 Mon Sep 17 00:00:00 2001
-From: Frank Rowand <frank.rowand@sony.com>
-Date: Thu, 16 Apr 2020 16:42:46 -0500
-Subject: of: unittest: kmemleak on changeset destroy
-
-From: Frank Rowand <frank.rowand@sony.com>
-
-commit b3fb36ed694b05738d45218ea72cf7feb10ce2b1 upstream.
-
-kmemleak reports several memory leaks from devicetree unittest.
-This is the fix for problem 1 of 5.
-
-of_unittest_changeset() reaches deeply into the dynamic devicetree
-functions. Several nodes were left with an elevated reference
-count and thus were not properly cleaned up. Fix the reference
-counts so that the memory will be freed.
-
-Fixes: 201c910bd689 ("of: Transactional DT support.")
-Reported-by: Erhard F. <erhard_f@mailbox.org>
-Signed-off-by: Frank Rowand <frank.rowand@sony.com>
-Signed-off-by: Rob Herring <robh@kernel.org>
-Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-
----
- drivers/of/unittest.c | 4 ++++
- 1 file changed, 4 insertions(+)
-
---- a/drivers/of/unittest.c
-+++ b/drivers/of/unittest.c
-@@ -544,6 +544,10 @@ static void __init of_unittest_changeset
- mutex_unlock(&of_mutex);
-
- of_changeset_destroy(&chgset);
-+
-+ of_node_put(n1);
-+ of_node_put(n2);
-+ of_node_put(n21);
- #endif
- }
-
tracing-fix-the-race-between-registering-snapshot-event-trigger-and-triggering-snapshot-operation.patch
scsi-sg-add-sg_remove_request-in-sg_common_write.patch
alsa-hda-don-t-release-card-at-firmware-loading-error.patch
-of-unittest-kmemleak-on-changeset-destroy.patch
video-fbdev-sis-remove-unnecessary-parentheses-and-commented-code.patch
drm-null-pointer-dereference-cwe-476-problem.patch
wil6210-increase-firmware-ready-timeout.patch
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
- drivers/of/unittest.c | 7 +++++--
+ drivers/of/unittest.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
-diff --git a/drivers/of/unittest.c b/drivers/of/unittest.c
-index 40d170c1ecd50..144d123f6ea4f 100644
--- a/drivers/of/unittest.c
+++ b/drivers/of/unittest.c
-@@ -825,10 +825,13 @@ static void __init of_unittest_platform_populate(void)
+@@ -821,10 +821,13 @@ static void __init of_unittest_platform_
of_platform_populate(np, match, NULL, &test_bus->dev);
for_each_child_of_node(np, child) {
}
of_platform_depopulate(&test_bus->dev);
---
-2.20.1
-
+++ /dev/null
-From b3fb36ed694b05738d45218ea72cf7feb10ce2b1 Mon Sep 17 00:00:00 2001
-From: Frank Rowand <frank.rowand@sony.com>
-Date: Thu, 16 Apr 2020 16:42:46 -0500
-Subject: of: unittest: kmemleak on changeset destroy
-
-From: Frank Rowand <frank.rowand@sony.com>
-
-commit b3fb36ed694b05738d45218ea72cf7feb10ce2b1 upstream.
-
-kmemleak reports several memory leaks from devicetree unittest.
-This is the fix for problem 1 of 5.
-
-of_unittest_changeset() reaches deeply into the dynamic devicetree
-functions. Several nodes were left with an elevated reference
-count and thus were not properly cleaned up. Fix the reference
-counts so that the memory will be freed.
-
-Fixes: 201c910bd689 ("of: Transactional DT support.")
-Reported-by: Erhard F. <erhard_f@mailbox.org>
-Signed-off-by: Frank Rowand <frank.rowand@sony.com>
-Signed-off-by: Rob Herring <robh@kernel.org>
-Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-
----
- drivers/of/unittest.c | 4 ++++
- 1 file changed, 4 insertions(+)
-
---- a/drivers/of/unittest.c
-+++ b/drivers/of/unittest.c
-@@ -539,6 +539,10 @@ static void __init of_unittest_changeset
- unittest(!of_changeset_revert(&chgset), "revert failed\n");
-
- of_changeset_destroy(&chgset);
-+
-+ of_node_put(n1);
-+ of_node_put(n2);
-+ of_node_put(n21);
- #endif
- }
-
objtool-fix-switch-table-detection-in-.text.unlikely.patch
scsi-sg-add-sg_remove_request-in-sg_common_write.patch
alsa-hda-don-t-release-card-at-firmware-loading-error.patch
-of-unittest-kmemleak-on-changeset-destroy.patch
video-fbdev-sis-remove-unnecessary-parentheses-and-commented-code.patch
drm-null-pointer-dereference-cwe-476-problem.patch
revert-gpio-set-up-initial-state-from-.get_direction.patch