aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVasundhara Volam <vasundhara-v.volam@broadcom.com>2019-04-25 22:31:51 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-05-05 14:42:39 +0200
commit396350737326d0e54c848ae14e4eb7160592633d (patch)
treef2082ab9fd3a25f4b79454693c9150cf6567b730
parent09a9213613533a7e34245df1f258764cf71a5206 (diff)
downloadlinux-yocto-396350737326d0e54c848ae14e4eb7160592633d.tar.gz
linux-yocto-396350737326d0e54c848ae14e4eb7160592633d.tar.bz2
linux-yocto-396350737326d0e54c848ae14e4eb7160592633d.zip
bnxt_en: Free short FW command HWRM memory in error path in bnxt_init_one()
[ Upstream commit f9099d611449836a51a65f40ea7dc9cb5f2f665e ] In the bnxt_init_one() error path, short FW command request memory is not freed. This patch fixes it. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/net/ethernet/broadcom/bnxt/bnxt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt.c b/drivers/net/ethernet/broadcom/bnxt/bnxt.c
index 02680357bb5f..90436c5abbc9 100644
--- a/drivers/net/ethernet/broadcom/bnxt/bnxt.c
+++ b/drivers/net/ethernet/broadcom/bnxt/bnxt.c
@@ -9084,6 +9084,7 @@ init_err_cleanup_tc:
bnxt_clear_int_mode(bp);
init_err_pci_clean:
+ bnxt_free_hwrm_short_cmd_req(bp);
bnxt_free_hwrm_resources(bp);
bnxt_cleanup_pci(bp);