Commit 442312c
net: stmmac: Fix accessing freed irq affinity_hint
[ Upstream commit c60d101 ]
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: 8deec94 ("net: stmmac: set IRQ affinity hint for multi MSI vectors")
Signed-off-by: Qingfang Deng <dqfext@gmail.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Link: https://patch.msgid.link/20250318032424.112067-1-dqfext@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent 725a59d commit 442312c
1 file changed
+4
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3603 | 3603 | | |
3604 | 3604 | | |
3605 | 3605 | | |
3606 | | - | |
3607 | 3606 | | |
3608 | 3607 | | |
3609 | 3608 | | |
| |||
3732 | 3731 | | |
3733 | 3732 | | |
3734 | 3733 | | |
3735 | | - | |
3736 | | - | |
3737 | | - | |
| 3734 | + | |
| 3735 | + | |
3738 | 3736 | | |
3739 | 3737 | | |
3740 | 3738 | | |
| |||
3757 | 3755 | | |
3758 | 3756 | | |
3759 | 3757 | | |
3760 | | - | |
3761 | | - | |
3762 | | - | |
| 3758 | + | |
| 3759 | + | |
3763 | 3760 | | |
3764 | 3761 | | |
3765 | 3762 | | |
| |||
0 commit comments