Blame SOURCES/_PATCH_RHEL-7_04-12_bnxt_en_Free_short_FW_command_HWRM_memory_in_error.patch

8fbaf1
Date: Wed,  5 Jun 2019 13:55:23 -0400
8fbaf1
From: Jonathan Toppins <jtoppins@redhat.com>
8fbaf1
To: rhkernel-list@redhat.com
8fbaf1
Cc: darcari@redhat.com, linville@redhat.com
8fbaf1
Subject: [PATCH RHEL-7 04/12] bnxt_en: Free short FW command HWRM memory in
8fbaf1
 error path in bnxt_init_one()
8fbaf1
8fbaf1
In the bnxt_init_one() error path, short FW command request memory
8fbaf1
is not freed. This patch fixes it.
8fbaf1
8fbaf1
Fixes: e605db801bde ("bnxt_en: Support for Short Firmware Message")
8fbaf1
Signed-off-by: Vasundhara Volam <vasundhara-v.volam@broadcom.com>
8fbaf1
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
8fbaf1
Signed-off-by: David S. Miller <davem@davemloft.net>
8fbaf1
(cherry picked from commit f9099d611449836a51a65f40ea7dc9cb5f2f665e)
8fbaf1
Bugzilla: 1715161
8fbaf1
Build Info: https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=21964229
8fbaf1
Tested: build and boot
8fbaf1
Signed-off-by: Jonathan Toppins <jtoppins@redhat.com>
8fbaf1
---
8fbaf1
 drivers/net/ethernet/broadcom/bnxt/bnxt.c | 1 +
8fbaf1
 1 file changed, 1 insertion(+)
8fbaf1
8fbaf1
diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt.c b/drivers/net/ethernet/broadcom/bnxt/bnxt.c
8fbaf1
index 7a59eff77b98..9e747f155fd9 100644
8fbaf1
--- a/drivers/net/ethernet/broadcom/bnxt/bnxt.c
8fbaf1
+++ b/drivers/net/ethernet/broadcom/bnxt/bnxt.c
8fbaf1
@@ -10648,6 +10648,7 @@ init_err_cleanup_tc:
8fbaf1
 	bnxt_clear_int_mode(bp);
8fbaf1
 
8fbaf1
 init_err_pci_clean:
8fbaf1
+	bnxt_free_hwrm_short_cmd_req(bp);
8fbaf1
 	bnxt_free_hwrm_resources(bp);
8fbaf1
 	bnxt_free_ctx_mem(bp);
8fbaf1
 	kfree(bp->ctx);
8fbaf1
-- 
8fbaf1
2.16.4
8fbaf1
8fbaf1