]> asedeno.scripts.mit.edu Git - linux.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)
commit90c694bb71819fb5bd3501ac397307d7e41ddeca
treeda40ede4905d270f6a577197bd4c02ce932c5251
parent0eaa24b971ae251ae9d3be23f77662a655532063
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