Commit 8e5debe
net: stmmac: Use rtnl_lock/unlock on netif_set_real_num_rx_queues() call
Fix an issue where dump stack is printed on suspend resume flow due to
netif_set_real_num_rx_queues() is not called with rtnl_lock held().
Fixes: 686cff3 ("net: stmmac: Fix incorrect location to set real_num_rx|tx_queues")
Reported-by: Christophe ROULLIER <christophe.roullier@st.com>
Tested-by: Christophe ROULLIER <christophe.roullier@st.com>
Cc: Alexandre TORGUE <alexandre.torgue@st.com>
Reviewed-by: Ong Boon Leong <boon.leong.ong@intel.com>
Signed-off-by: Wong Vee Khee <vee.khee.wong@intel.com>
Link: https://lore.kernel.org/r/20201115074210.23605-1-vee.khee.wong@intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>1 parent 7a30ecc commit 8e5debe
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5247 | 5247 | | |
5248 | 5248 | | |
5249 | 5249 | | |
| 5250 | + | |
5250 | 5251 | | |
5251 | 5252 | | |
5252 | 5253 | | |
| |||
5262 | 5263 | | |
5263 | 5264 | | |
5264 | 5265 | | |
| 5266 | + | |
5265 | 5267 | | |
5266 | 5268 | | |
5267 | 5269 | | |
| |||
0 commit comments