Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp396628yba; Sat, 4 May 2019 04:49:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqwXHrkeBdGMiU5SNxOv6YuJTJCyo2aRHTgVc9amcWM/X0xRElBAaW5T+7GtLPRz3g89SNGq X-Received: by 2002:a17:902:bd82:: with SMTP id q2mr9470187pls.259.1556970547836; Sat, 04 May 2019 04:49:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556970547; cv=none; d=google.com; s=arc-20160816; b=mmDqwiQBH5gc3xo4UgbtK0MTy1tWbWnHx64UATyARJjnlZNejnWIzwGVNfleXRoS4H 8OhqbNvPvKYyLQSnDKKZI2RJYtAiLQpzgsIm1FAUXdbVStoUJt0WWJ69cQKPF52faOJJ KGodz328ReJxSvcp22oYWzQLZvt8DgrISscZe+tdcGnBNGkkL7PY0MM/MVX5WkOGLqal B5M6kVAwdG4pKduaW/As0le3uiR4f6X7hOY34eVbKeNZ4G4Ame0livMg6NoiY/Mvftn2 LrXezmXOiKJpiEzMlehJC/Wie4B7XNUTZWCzY09NoeeP67xTRQmsHVdm+I8IYQY1vG8O LnpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=K7AvNNfk/FGV4Mq2Sw8MN6w0FQS9poGzOg+UCdGngKY=; b=AkaBZjRCcDkXO7lv6R9B/LR+yOofyJOVlmPLDExF1XXNsKpp3GBtqN6TXgyCDVkYfe gUM9TNC+46jfRN19BwWpAsTuOw+Xc0R3/7ipyFtrMcaZy3w17KIx1ZohCdYlkCHv9MvN coSvXrBH8ZAXKss83RJrP5ycjwezwp2c3bZtAT+3zV5rS/FySxH4R6EMdyyRjV4Qudif CvDOio+Jqk6JSJfI39+e4JmW871SSqBDFfQjrpZ1DoirinndyfoaFMlHqgMIluI7t+fn 5lUGa3ftwzDw2Zk9qsQedBvOpuLhiEk8CoUejqH2iYgJqiMwLY4ctabFD1IfEtZcwVo8 IZvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=RYJJBzTc; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j23si4949028pff.159.2019.05.04.04.48.39; Sat, 04 May 2019 04:49:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=RYJJBzTc; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728140AbfEDK1X (ORCPT + 99 others); Sat, 4 May 2019 06:27:23 -0400 Received: from mail.kernel.org ([198.145.29.99]:37444 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728082AbfEDK1U (ORCPT ); Sat, 4 May 2019 06:27:20 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B40262085A; Sat, 4 May 2019 10:27:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1556965640; bh=cwqp4+XXCvYr9qVPS+8J29OTroYcZB6SEhj/dzuR198=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RYJJBzTcWIt2Wt4TnrKagc7jvATOPUpuVoVoVhkfLQCJHignBJEwUnW+BMK2a1p+8 TCIxJIwZXibcaQex816vue3OJKl/+E/O2ZWbLs5lmBKKbsZMuOSh+uCxb5nJzpJyzJ xUq/GXbeGwW/8bat6PAyxXsXqHZQMkUCv11A0vy4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Vasundhara Volam , Michael Chan , "David S. Miller" Subject: [PATCH 4.19 16/23] bnxt_en: Free short FW command HWRM memory in error path in bnxt_init_one() Date: Sat, 4 May 2019 12:25:18 +0200 Message-Id: <20190504102452.060278957@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190504102451.512405835@linuxfoundation.org> References: <20190504102451.512405835@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Vasundhara Volam [ 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 --- drivers/net/ethernet/broadcom/bnxt/bnxt.c | 1 + 1 file changed, 1 insertion(+) --- 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);