From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 27177C433E0 for ; Fri, 19 Jun 2020 13:45:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 055D1208C7 for ; Fri, 19 Jun 2020 13:45:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592574356; bh=V/nNRGWKKXoLjhwx8Tns4WfTEsGkqZbvRdb8sbfDwVE=; h=Subject:To:Cc:From:Date:List-ID:From; b=s1w8oU7OYRd1+iZk2UMHBpyUFtIzI5ZOn/nzJMX+GyNK2gLgvGa6PMaEcZkM+DIRn uqJxElvSK8B8/hPaLejA7irsObe/QCDzrsgUcZWv/tLw6Ujxr5l19YCxsUJ+8mo9KN tSv+9Yqn5KCRL/TsRI5+QBq4jN5TKV9xKUPcFlLc= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732611AbgFSNpz (ORCPT ); Fri, 19 Jun 2020 09:45:55 -0400 Received: from forward5-smtp.messagingengine.com ([66.111.4.239]:55991 "EHLO forward5-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732029AbgFSNpy (ORCPT ); Fri, 19 Jun 2020 09:45:54 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailforward.nyi.internal (Postfix) with ESMTP id B12A91945747; Fri, 19 Jun 2020 09:45:53 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Fri, 19 Jun 2020 09:45:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=yzaxEu t7BIZ+SaMiVPbBq7l5F+yEApXKREGTDlsCFms=; b=S/ba6qEpCd0XNyP6lrb4sD /oMcMfznwWmaAhjQqxYht8/FOz4PWpvUo+sobkM8S6hYfCekIUXjraFUtfJT87t9 CtHjM/yHickOb9+xDmjY6LTpzb4EiJnKCL/u6k9mFU+oJg1yz4CAri2PkMkWN6lS lwESSqfC8uEMdQx+mzBYhibJdT7UPkfB1Vo/e4Ui3/3QG+UwDSxYepx/e5b83KUy YmDcLbAK6ZhkBK2CdS7JH5i84l/bwRfUtKEPVo9H7ADYIM1sbUA3hlAulQN6qSne AyYkK7zyuk9cHsqR23RPhssXLqunV/cgx4pzZpL1Wt0sTlef+E3wJqnsIN6adLmg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrudejiedgieelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvffhfffkgggtgfesthekredttd dtlfenucfhrhhomhepoehgrhgvghhkhheslhhinhhugihfohhunhgurghtihhonhdrohhr gheqnecuggftrfgrthhtvghrnhepieetveehuedvhfdtgfdvieeiheehfeelveevheejud etveeuveeludejjefgteehnecukfhppeekfedrkeeirdekledruddtjeenucevlhhushht vghrufhiiigvpeeinecurfgrrhgrmhepmhgrihhlfhhrohhmpehgrhgvgheskhhrohgrhh drtghomh X-ME-Proxy: Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) by mail.messagingengine.com (Postfix) with ESMTPA id 5036F328006B; Fri, 19 Jun 2020 09:45:53 -0400 (EDT) Subject: FAILED: patch "[PATCH] net/mlx5: DR, Fix freeing in dr_create_rc_qp()" failed to apply to 5.4-stable tree To: efremov@linux.com, saeedm@mellanox.com Cc: From: Date: Fri, 19 Jun 2020 15:45:43 +0200 Message-ID: <1592574343164106@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org The patch below does not apply to the 5.4-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From 47a357de2b6b706af3c9471d5042f9ba8907031e Mon Sep 17 00:00:00 2001 From: Denis Efremov Date: Mon, 1 Jun 2020 19:45:26 +0300 Subject: [PATCH] net/mlx5: DR, Fix freeing in dr_create_rc_qp() Variable "in" in dr_create_rc_qp() is allocated with kvzalloc() and should be freed with kvfree(). Fixes: 297cccebdc5a ("net/mlx5: DR, Expose an internal API to issue RDMA operations") Cc: stable@vger.kernel.org Signed-off-by: Denis Efremov Signed-off-by: Saeed Mahameed diff --git a/drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c b/drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c index f421013b0b54..2ca79b9bde1f 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c @@ -179,7 +179,7 @@ static struct mlx5dr_qp *dr_create_rc_qp(struct mlx5_core_dev *mdev, MLX5_SET(create_qp_in, in, opcode, MLX5_CMD_OP_CREATE_QP); err = mlx5_cmd_exec(mdev, in, inlen, out, sizeof(out)); dr_qp->qpn = MLX5_GET(create_qp_out, out, qpn); - kfree(in); + kvfree(in); if (err) goto err_in; dr_qp->uar = attr->uar;