]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerDavid S. Miller <davem@davemloft.net>
Wed, 25 Jan 2017 18:27:13 +0000 (13:27 -0500)
commit89af31557e6ffe5df1ffa8ffa1d9b58024bfa399
treeda40ede4905d270f6a577197bd4c02ce932c5251
parent2ac6b4aa1a845fca3ab91e2b4f1e11e187f35509
bnxt_en: Fix RTNL lock usage on bnxt_get_port_module_status().

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>
drivers/net/ethernet/broadcom/bnxt/bnxt.c