]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: Fix a variable scoping in bnxt_hwrm_do_send_msg()
authorVasundhara Volam <vasundhara-v.volam@broadcom.com>
Fri, 1 Dec 2017 08:13:05 +0000 (03:13 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sun, 3 Dec 2017 02:25:38 +0000 (21:25 -0500)
commit7ba619ae85e0de97aa31f73c8c9b440a8e9fc607
tree22971f18f36b10f8da36294f8f56596efd1103c2
parent92c6ed762cbf2d6a6bc546ab4fd8cfb08020c4ef
bnxt_en: Fix a variable scoping in bnxt_hwrm_do_send_msg()

short_input variable is assigned to another data pointer which is
referred out of its scope. Fix it by moving short_input definition
to the beginning of bnxt_hwrm_do_send_msg() function.

No failure has been reported so far due to this issue.

Fixes: 82febf22fc33 ("bnxt_en: Support for Short Firmware Message")
Signed-off-by: Vasundhara Volam <vasundhara-v.volam@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.c