Thomas Gleixner 3735459037 PCI/MSI: Destroy sysfs before freeing entries
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
2021-11-11 09:50:31 +01:00
..
2021-11-06 14:36:12 -07:00
2021-11-06 14:36:12 -07:00
2021-11-05 11:28:47 -05:00
2021-06-16 17:20:40 -05:00
2021-11-05 11:28:46 -05:00
2021-11-05 11:28:46 -05:00
2021-11-02 19:06:30 +01:00
2021-11-05 11:28:47 -05:00
2021-11-06 14:36:12 -07:00
2021-11-08 11:49:48 -08:00
2021-11-06 14:36:12 -07:00
2021-11-05 11:28:47 -05:00
2021-09-07 19:13:42 -07:00
2021-02-10 16:46:29 -06:00
2021-09-28 13:43:17 -05:00