bnxt_en: Fix possible corruption in DCB parameters from firmware.
authorSankar Patchineelam <sankar.patchineelam@broadcom.com>
Sat, 14 Oct 2017 01:09:34 +0000 (21:09 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sun, 15 Oct 2017 01:51:51 +0000 (18:51 -0700)
commit5b1e1a9ce06fd94b563d6c3dd896589231995d89
treeddddaea1adba2f60654baee595a6f80a98b6767f
parentcc72f3b1feb4fd38d33ab7a013d5ab95041cb8ba
bnxt_en: Fix possible corruption in DCB parameters from firmware.

hwrm_send_message() is replaced with _hwrm_send_message(), and
hwrm_cmd_lock mutex lock is grabbed for the whole period of
firmware call until the firmware DCB parameters have been copied.
This will prevent possible corruption of the firmware data.

Fixes: 7df4ae9fe855 ("bnxt_en: Implement DCBNL to support host-based DCBX.")
Signed-off-by: Sankar Patchineelam <sankar.patchineelam@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c