]> www.infradead.org Git - users/jedix/linux-maple.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)
committerJack Vogel <jack.vogel@oracle.com>
Fri, 9 Mar 2018 05:03:01 +0000 (21:03 -0800)
commitc80d646e77ed0a170d7bbbdb9602a3dbbbf85e88
tree3b6325087fbd1e39f72cdd206e64bd28b09db709
parentcb4237f62e21f621d2f0f963d0009a735f310d34
bnxt_en: Fix a variable scoping in bnxt_hwrm_do_send_msg()

Orabug: 2764835527648339

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: e605db801bde ("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>
(cherry picked from commit ebd5818cc5d4847897d7fe872e2d9799d7b7fcbb)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
Reviewed-by: Jack Vogel <jack.vogel@oracle.com>
drivers/net/ethernet/broadcom/bnxt/bnxt.c