Commit c60d101
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: 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>1 parent 2f6efba commit c60d101
1 file changed
Lines changed: 4 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3640 | 3640 | | |
3641 | 3641 | | |
3642 | 3642 | | |
3643 | | - | |
3644 | 3643 | | |
3645 | 3644 | | |
3646 | 3645 | | |
| |||
3769 | 3768 | | |
3770 | 3769 | | |
3771 | 3770 | | |
3772 | | - | |
3773 | | - | |
3774 | | - | |
| 3771 | + | |
| 3772 | + | |
3775 | 3773 | | |
3776 | 3774 | | |
3777 | 3775 | | |
| |||
3794 | 3792 | | |
3795 | 3793 | | |
3796 | 3794 | | |
3797 | | - | |
3798 | | - | |
3799 | | - | |
| 3795 | + | |
| 3796 | + | |
3800 | 3797 | | |
3801 | 3798 | | |
3802 | 3799 | | |
| |||
0 commit comments