Commit 29fe5d50 authored by Linus Torvalds's avatar Linus Torvalds
Browse files
Pull modules fix from Petr Pavlu:
 "A single fix to prevent use of an uninitialized completion pointer
  when releasing a module_kobject in specific situations.

  This addresses a latent bug exposed by commit f95bbfe1 ("drivers:
  base: handle module_kobject creation")"

* tag 'modules-6.15-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/modules/linux:
  module: ensure that kobject_put() is safe for module type kobjects
parents fea4e317 a6aeb739
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -943,6 +943,8 @@ struct kset *module_kset;
static void module_kobj_release(struct kobject *kobj)
{
	struct module_kobject *mk = to_module_kobject(kobj);

	if (mk->kobj_completion)
		complete(mk->kobj_completion);
}