]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
patch refresh for 4.4
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 Jan 2021 18:05:25 +0000 (19:05 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 Jan 2021 18:05:25 +0000 (19:05 +0100)
queue-4.4/module-delay-kobject-uevent-until-after-module-init-.patch

index 1609d16d4754f9cadd30075e15793c8cd336a194..8ca36f0bc469e68d45cdddbd69a2a99bb9d22e24 100644 (file)
@@ -34,14 +34,12 @@ Tested-By: Nicolas Morey-Chaisemartin <nmoreychaisemartin@suse.com>
 Signed-off-by: Jessica Yu <jeyu@kernel.org>
 Signed-off-by: Sasha Levin <sashal@kernel.org>
 ---
- kernel/module.c | 5 +++--
+ kernel/module.c |    5 +++--
  1 file changed, 3 insertions(+), 2 deletions(-)
 
-diff --git a/kernel/module.c b/kernel/module.c
-index dcfc811d9ae2d..e6afc950357a5 100644
 --- a/kernel/module.c
 +++ b/kernel/module.c
-@@ -1779,7 +1779,6 @@ static int mod_sysfs_init(struct module *mod)
+@@ -1779,7 +1779,6 @@ static int mod_sysfs_init(struct module
        if (err)
                mod_kobject_put(mod);
  
@@ -49,7 +47,7 @@ index dcfc811d9ae2d..e6afc950357a5 100644
  out:
        return err;
  }
-@@ -1813,7 +1812,6 @@ static int mod_sysfs_setup(struct module *mod,
+@@ -1813,7 +1812,6 @@ static int mod_sysfs_setup(struct module
        add_sect_attrs(mod, info);
        add_notes_attrs(mod, info);
  
@@ -57,7 +55,7 @@ index dcfc811d9ae2d..e6afc950357a5 100644
        return 0;
  
  out_unreg_param:
-@@ -3301,6 +3299,9 @@ static noinline int do_init_module(struct module *mod)
+@@ -3301,6 +3299,9 @@ static noinline int do_init_module(struc
        blocking_notifier_call_chain(&module_notify_list,
                                     MODULE_STATE_LIVE, mod);
  
@@ -67,6 +65,3 @@ index dcfc811d9ae2d..e6afc950357a5 100644
        /*
         * We need to finish all async code before the module init sequence
         * is done.  This has potential to deadlock.  For example, a newly
--- 
-2.27.0
-