From: Vasundhara Volam Date: Fri, 26 Apr 2019 02:31:51 +0000 (-0400) Subject: bnxt_en: Free short FW command HWRM memory in error path in bnxt_init_one() X-Git-Tag: v4.19.40~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=396350737326d0e54c848ae14e4eb7160592633d;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Michael Chan Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt.c b/drivers/net/ethernet/broadcom/bnxt/bnxt.c index 0268035..90436c5 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);