Corey Minyard
b642ced2ca
ipmi: Don't allow device module unload when in use
...
[ Upstream commit cbb79863fc3175ed5ac506465948b02a893a8235 ]
If something has the IPMI driver open, don't allow the device
module to be unloaded. Before it would unload and the user would
get errors on use.
This change is made on user request, and it makes it consistent
with the I2C driver, which has the same behavior.
It does change things a little bit with respect to kernel users.
If the ACPI or IPMI watchdog (or any other kernel user) has
created a user, then the device module cannot be unloaded. Before
it could be unloaded,
This does not affect hot-plug. If the device goes away (it's on
something removable that is removed or is hot-removed via sysfs)
then it still behaves as it did before.
Reported-by: tony camuso <tcamuso@redhat.com>
Signed-off-by: Corey Minyard <cminyard@mvista.com>
Tested-by: tony camuso <tcamuso@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-12-31 16:44:14 +01:00
..
agp
ia64: remove support for machvecs
2019-08-16 14:32:26 -07:00
hw_random
hwrng: omap3-rom - Call clk_disable_unprepare() on exit only if not idled
2019-12-31 16:43:39 +01:00
ipmi
ipmi: Don't allow device module unload when in use
2019-12-31 16:44:14 +01:00
mwave
treewide: Add SPDX license identifier - Makefile/Kconfig
2019-05-21 10:50:46 +02:00
pcmcia
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 18
2019-05-21 11:28:46 +02:00
tpm
tpm: Switch to platform_get_irq_optional()
2019-12-17 19:55:51 +01:00
xilinx_hwicap
treewide: Add SPDX license identifier - Makefile/Kconfig
2019-05-21 10:50:46 +02:00
xillybus
PCI: Move ASPM declarations to linux/pci.h
2019-08-28 08:28:39 -05:00
adi.c
apm-emulation.c
treewide: Add SPDX license identifier for more missed files
2019-05-21 10:50:45 +02:00
applicom.c
treewide: Add SPDX license identifier for more missed files
2019-05-21 10:50:45 +02:00
applicom.h
bsr.c
Merge 5.2-rc4 into char-misc-next
2019-06-09 09:11:21 +02:00
ds1620.c
treewide: Add SPDX license identifier for more missed files
2019-05-21 10:50:45 +02:00
dsp56k.c
dtlk.c
treewide: Add SPDX license identifier for more missed files
2019-05-21 10:50:45 +02:00
efirtc.c
treewide: Add SPDX license identifier for more missed files
2019-05-21 10:50:45 +02:00
hangcheck-timer.c
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 405
2019-06-05 17:37:13 +02:00
hpet.c
hpet: Fix division by zero in hpet_time_div()
2019-07-25 14:39:51 +02:00
Kconfig
ia64 for v5.4 - big change here is removal of support for SGI Altix
2019-09-16 15:32:01 -07:00
lp.c
lp: fix sparc64 LPSETTIMEOUT ioctl
2019-12-13 08:42:17 +01:00
Makefile
char: remove the SGI tiocx/mbcs driver
2019-08-16 11:33:56 -07:00
mem.c
Merge branch 'next-lockdown' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security
2019-09-28 08:14:15 -07:00
misc.c
char: misc: Move EXPORT_SYMBOL immediately next to the functions/varibles
2019-05-24 18:00:41 +02:00
mspec.c
char/mspec: remove SGI SN2 support
2019-08-16 11:33:56 -07:00
nsc_gpio.c
treewide: Add SPDX license identifier for more missed files
2019-05-21 10:50:45 +02:00
nvram.c
treewide: Add SPDX license identifier for more missed files
2019-05-21 10:50:45 +02:00
nwbutton.c
treewide: Add SPDX license identifier for more missed files
2019-05-21 10:50:45 +02:00
nwbutton.h
nwflash.c
treewide: Add SPDX license identifier for more missed files
2019-05-21 10:50:45 +02:00
pc8736x_gpio.c
treewide: Add SPDX license identifier for more missed files
2019-05-21 10:50:45 +02:00
powernv-op-panel.c
treewide: Add SPDX license identifier for more missed files
2019-05-21 10:50:45 +02:00
ppdev.c
ppdev: fix PPGETTIME/PPSETTIME ioctls
2019-12-17 19:56:41 +01:00
ps3flash.c
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 164
2019-05-30 11:26:38 -07:00
random.c
Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
2019-11-16 18:14:32 -08:00
raw.c
treewide: Add SPDX license identifier for more missed files
2019-05-21 10:50:45 +02:00
rtc.c
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152
2019-05-30 11:26:32 -07:00
scx200_gpio.c
treewide: Add SPDX license identifier for more missed files
2019-05-21 10:50:45 +02:00
sonypi.c
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 61
2019-05-24 17:36:45 +02:00
tb0219.c
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156
2019-05-30 11:26:35 -07:00
tlclk.c
toshiba.c
toshiba: Add correct printk log level while emitting error log
2019-09-04 13:42:43 +02:00
ttyprintk.c
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 402
2019-06-05 17:37:13 +02:00
uv_mmtimer.c
virtio_console.c
virtio_console: allocate inbufs in add_port() only if it is needed
2019-11-19 05:13:49 -05:00