Fix crashes in the gic-v2m irqchip driver, caused by an

incorrect __init annotation.
 
 Signed-off-by: Ingo Molnar <mingo@kernel.org>
 -----BEGIN PGP SIGNATURE-----
 
 iQJFBAABCgAvFiEEBpT5eoXrXCwVQwEKEnMQ0APhK1gFAmgMl84RHG1pbmdvQGtl
 cm5lbC5vcmcACgkQEnMQ0APhK1gMJA//Y0PXtYRBfhUVUrOPjZICCFBVB4zjap5R
 1dn5Q7jdL7NEkaLMd6IkFiU5aGo4x1879hZVyO+bG6rw9COw2GemFGvb36X3aTEH
 Qxsw4srqlhgHofi0JXL1G1GMO0BhGLhuelQNaWt3BOwo18M/mF5op71E5VFrBqlo
 Hfxf7pNRt9wNXh0D+3l5RVJ55xWfuSfqvPpqceqxmD5cmEL52kjW8dMF4zcODu3s
 6v6R0r6SsskyTDF+enEEBwzOI59w83gpWyzu0vRIyV0qjAZDnBt12TP9iTGV8EkJ
 pY6FpUit17BJQQo+B7rgha3eZP8CzOPWRhXL6/TIJrZrH2rVnvx8V1zS1RO8xWHK
 yBDKo8Il7drFVupTv8k1vq73hip4y1Oao0gQbMpcHx3FeN/1IwBgYbTZxU5rtqjs
 Z/tVrnUPr3rKG+wbEW7Ktre7c6/5KBBNnqbhv6gXLnciwWuk5fFIOQGne2bSGHSn
 7/hkw3LQv7sSkBj3RboH44R12HNvAT8Sm5XQP0RWvDeKU8tSiZnI2dOxeHJmxYwr
 K1Tw9WKywWZWTud9dp984ndpFzHPeb3QiSHcagOg7trxlL815JNYbKDMx9CeHdL0
 MU2CGEOChnmVkHR6pdgIRA2M3stwEI/MQ+XOIxFdN+6/J04ciNwmVa+UdCS6XL6J
 B9OggLyN3FU=
 =O31o
 -----END PGP SIGNATURE-----

Merge tag 'irq-urgent-2025-04-26' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Pull irq fix from Ingo Molnar:
 "Fix crashes in the gic-v2m irqchip driver, caused by an incorrect
  __init annotation"

* tag 'irq-urgent-2025-04-26' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
  irqchip/gic-v2m: Prevent use after free of gicv2m_get_fwnode()
This commit is contained in:
Linus Torvalds 2025-04-26 09:08:45 -07:00
commit a226e6540b

View File

@ -421,7 +421,7 @@ static int __init gicv2m_of_init(struct fwnode_handle *parent_handle,
#ifdef CONFIG_ACPI
static int acpi_num_msi;
static __init struct fwnode_handle *gicv2m_get_fwnode(struct device *dev)
static struct fwnode_handle *gicv2m_get_fwnode(struct device *dev)
{
struct v2m_data *data;