bnxt_en: Fix RTNL lock usage on bnxt_get_port_module_status().
authorMichael Chan <michael.chan@broadcom.com>
Wed, 25 Jan 2017 07:55:09 +0000 (02:55 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Jun 2017 04:41:56 +0000 (06:41 +0200)
commit12a583ddf02a976080f36f75139a9167a9975e68
treed91fb34903512d71ca8bc2a782c17caf7aa9d0bd
parent66deb409251c6e88de9cdffc5a952670fe544410
bnxt_en: Fix RTNL lock usage on bnxt_get_port_module_status().

[ Upstream commit 90c694bb71819fb5bd3501ac397307d7e41ddeca ]

bnxt_get_port_module_status() calls bnxt_update_link() which expects
RTNL to be held.  In bnxt_sp_task() that does not hold RTNL, we need to
call it with a prior call to bnxt_rtnl_lock_sp() and the call needs to
be moved to the end of bnxt_sp_task().

Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/broadcom/bnxt/bnxt.c