]> www.infradead.org Git - users/jedix/linux-maple.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)
committerChuck Anderson <chuck.anderson@oracle.com>
Mon, 6 Mar 2017 21:35:29 +0000 (13:35 -0800)
commit1cc6b3575ee1669a5a989411dedfec0e5a4b6d04
treec96b8a1c051b3ef86f1b05a48cbd531edcd3fa4d
parent83ffcb9be6abb5bd866e1206c180efdbde6f75c2
bnxt_en: Fix RTNL lock usage on bnxt_get_port_module_status().

Orabug: 25645429

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>
(cherry picked from commit 90c694bb71819fb5bd3501ac397307d7e41ddeca)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/broadcom/bnxt/bnxt.c