diff options
author | 2024-08-11 09:38:38 -0700 | |
---|---|---|
committer | 2024-08-11 09:38:38 -0700 | |
commit | 84e6da575215154cf6aa1e17661989d3b37bb3c1 (patch) | |
tree | 94153155269d022d0b70f04c68406e716a468010 /drivers/base/module.c | |
parent | Merge tag 'char-misc-6.11-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc (diff) | |
parent | driver core: Fix uevent_show() vs driver detach race (diff) | |
download | wireguard-linux-84e6da575215154cf6aa1e17661989d3b37bb3c1.tar.xz wireguard-linux-84e6da575215154cf6aa1e17661989d3b37bb3c1.zip |
Merge tag 'driver-core-6.11-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core
Pull driver core / documentation fixes from Greg KH:
"Here are some small fixes, and some documentation updates for
6.11-rc3. Included in here are:
- embargoed hardware documenation updates based on a lot of review by
legal-types in lots of companies to try to make the process a _bit_
easier for us to manage over time.
- rust firmware documentation fix
- driver detach race fix for the fix that went into 6.11-rc1
All of these have been in linux-next for a while with no reported
issues"
* tag 'driver-core-6.11-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core:
driver core: Fix uevent_show() vs driver detach race
Documentation: embargoed-hardware-issues.rst: add a section documenting the "early access" process
Documentation: embargoed-hardware-issues.rst: minor cleanups and fixes
rust: firmware: fix invalid rustdoc link
Diffstat (limited to 'drivers/base/module.c')
-rw-r--r-- | drivers/base/module.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/base/module.c b/drivers/base/module.c index 7af224e6914a..f742ad2a21da 100644 --- a/drivers/base/module.c +++ b/drivers/base/module.c @@ -7,6 +7,7 @@ #include <linux/errno.h> #include <linux/slab.h> #include <linux/string.h> +#include <linux/rcupdate.h> #include "base.h" static char *make_driver_name(const struct device_driver *drv) @@ -97,6 +98,9 @@ void module_remove_driver(const struct device_driver *drv) if (!drv) return; + /* Synchronize with dev_uevent() */ + synchronize_rcu(); + sysfs_remove_link(&drv->p->kobj, "module"); if (drv->owner) |