]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Nov 2020 12:38:49 +0000 (13:38 +0100)
commit108cb4f9ea7da7f153d65e7c7409f47aa9855f93
treed0fe7f4be8d8adc960775cedb7dc8bdf86e84a4c
parent73259755c662c4b6815927904a18049534dae40e
net: stmmac: Use rtnl_lock/unlock on netif_set_real_num_rx_queues() call

[ Upstream commit 8e5debed39017836a850c6c7bfacc93299d19bad ]

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: 686cff3d7022 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c