From: Herton R. Krzesinski <[email protected]>

Revert "mm/kmemleak: skip late_init if not skip disable"

This reverts commit 24d8743613b2a6a585fc68cfe95078d9a3d5b389.

This patch never went upstream. The original issue is expected to
be fixed instead by commit 2abd839aa7e615f2bbc50c8ba7deb9e40d186768
("kmemleak: Do not corrupt the object_list during clean-up"), see
eg.: https://lkml.org/lkml/2019/10/8/742

Signed-off-by: Herton R. Krzesinski <[email protected]>

diff a/mm/kmemleak.c b/mm/kmemleak.c
--- a/mm/kmemleak.c
+++ b/mm/kmemleak.c
@@ -1960,11 +1960,6 @@ void __init kmemleak_init(void)
  */
 static int __init kmemleak_late_init(void)
 {
-       if (!kmemleak_skip_disable) {
-               kmemleak_disable();
-               return 0;
-       }
-
        kmemleak_initialized = 1;
 
        debugfs_create_file("kmemleak", 0644, NULL, NULL, &kmemleak_fops);

--
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/949
_______________________________________________
kernel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure

Reply via email to