diff options
| author | Thomas Gleixner <tglx@linutronix.de> | 2021-11-09 14:53:57 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-11-21 13:49:08 +0100 |
| commit | f64af173573104dd896a75b1b9116031b35bbb95 (patch) | |
| tree | afea29aa66e57928adc8db26d01fc3c0b83cb61b /include/uapi/linux/securebits.h | |
| parent | f41389affe96f140bb9b81e17f3dc5f002a413a3 (diff) | |
PCI/MSI: Destroy sysfs before freeing entries
commit 3735459037114d31e5acd9894fad9aed104231a0 upstream.
free_msi_irqs() frees the MSI entries before destroying the sysfs entries
which are exposing them. Nothing prevents a concurrent free while a sysfs
file is read and accesses the possibly freed entry.
Move the sysfs release ahead of freeing the entries.
Fixes: 1c51b50c2995 ("PCI/MSI: Export MSI mode using attributes, not kobjects")
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Bjorn Helgaas <helgaas@kernel.org>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/87sfw5305m.ffs@tglx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/uapi/linux/securebits.h')
0 files changed, 0 insertions, 0 deletions
