Commit c60d101a authored by Qingfang Deng's avatar Qingfang Deng Committed by Jakub Kicinski
Browse files

net: stmmac: Fix accessing freed irq affinity_hint



The cpumask should not be a local variable, since its pointer is saved
to irq_desc and may be accessed from procfs.
To fix it, use the persistent mask cpumask_of(cpu#).

Cc: stable@vger.kernel.org
Fixes: 8deec94c ("net: stmmac: set IRQ affinity hint for multi MSI vectors")
Signed-off-by: default avatarQingfang Deng <dqfext@gmail.com>
Reviewed-by: default avatarJacob Keller <jacob.e.keller@intel.com>
Link: https://patch.msgid.link/20250318032424.112067-1-dqfext@gmail.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 2f6efbab
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment