]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: Use rtnl_lock/unlock on netif_set_real_num_rx_queues() call
authorWong Vee Khee <vee.khee.wong@intel.com>
Sun, 15 Nov 2020 07:42:10 +0000 (15:42 +0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 17 Nov 2020 00:12:36 +0000 (16:12 -0800)
commit8fe00e255f872938e4c8dee299713ebd25792ef7
treeeddd74caf98f5c54e767df6b53e8909c68d8b0c6
parent8a346b685a45052b803a7c0e1dfe76351166f5e5
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: 9176efee096d ("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>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c