mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-11 00:42:56 -04:00
Merge tag 'modules-6.15-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/modules/linux
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 f95bbfe185 ("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
This commit is contained in:
@@ -943,7 +943,9 @@ struct kset *module_kset;
|
||||
static void module_kobj_release(struct kobject *kobj)
|
||||
{
|
||||
struct module_kobject *mk = to_module_kobject(kobj);
|
||||
complete(mk->kobj_completion);
|
||||
|
||||
if (mk->kobj_completion)
|
||||
complete(mk->kobj_completion);
|
||||
}
|
||||
|
||||
const struct kobj_type module_ktype = {
|
||||
|
||||
Reference in New Issue
Block a user