Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp2349603imm; Sat, 12 May 2018 10:09:47 -0700 (PDT) X-Google-Smtp-Source: AB8JxZptqHGHi7SY9An16L86oSBi+otYpxB5rPWVzRGpdfDMhSffl1X7XnP+uhFgvD9a8MKArgpf X-Received: by 2002:a17:902:be0e:: with SMTP id r14-v6mr3186141pls.158.1526144987534; Sat, 12 May 2018 10:09:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526144987; cv=none; d=google.com; s=arc-20160816; b=Mm4c4jBefA3sUPKLPPoX1PnYDdnF8k9T3r6m9/AFs8Iu6mRUbgNd4uCDMiX868jlzs +VFF22UKCc01Zb0e0ofMTzt1deCLx1V8VnmhN3oCq+TVzqV4fReX5XBx4E8x73kGczLH OqFxLV/vifM/xRI2XXRKchjgx8tWFu7/DXJDluIzDxLgZnD+DyImwGWjM3Tx94dBh2nD dy63QDaAo9PjwTzayQCzBlKp9Z5+w29WPIy6kDEShpm/I84SHGpDSueO2x04548QDn95 O09qlNf9P7QMCIYBxW8eduNztvc6EOXUfw6i3/kZXG7+x74TZwj/v0TAiptHVeDzh/0w 6NFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=RxWsXLMGLbSJdM0OkrLp5RzndQ8F/e+2b6NB0rd7roE=; b=aIUnuTMR1WjDMLpYB6M7efZHaHzpUxkxX+K9QwS2P94HJOQWWgZzt4XlceHhWDywup GTa08Y3pdte8TpZJvPNVdh0U6Gdl0A3UWPQHUEnpA0I9pWlzZ3C6bxxGIKvoALJ3fRda lQhqS0bapGACgoHZNYm14zzi2NCFtf4hYzYOGtLdMPT6wT5CdpVmwPz+n87n4/E5KM0I GdgNmNAecGeajGl0h4MKeDCFwt17ZCXWdzToJgvpn5uMt+C9hP1/q/1EAaKFzEqb2YoF L6VNNglA+D15AANa90TtSVi4b2m00A+LbCe7WVeZnmKXFVsMzz/ioDv3QdqH+FyhWhEd LD0w== ARC-Authentication-Results: i=1; mx.google.com; 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 v6-v6si6084069plp.60.2018.05.12.10.09.30; Sat, 12 May 2018 10:09:47 -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; 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 S1751150AbeELRJT (ORCPT + 99 others); Sat, 12 May 2018 13:09:19 -0400 Received: from smtp12.smtpout.orange.fr ([80.12.242.134]:53654 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751096AbeELRJS (ORCPT ); Sat, 12 May 2018 13:09:18 -0400 Received: from ubuntu-CJ.home ([86.244.116.1]) by mwinf5d47 with ME id lV9B1x00E01t9Ri03V9BBA; Sat, 12 May 2018 19:09:16 +0200 X-ME-Helo: ubuntu-CJ.home X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Sat, 12 May 2018 19:09:16 +0200 X-ME-IP: 86.244.116.1 From: Christophe JAILLET To: saeedm@mellanox.com, matanb@mellanox.com, leon@kernel.org, davem@davemloft.net Cc: netdev@vger.kernel.org, linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET Subject: [PATCH] net/mlx5: Use 'kvfree()' for memory allocated by 'kvzalloc()' Date: Sat, 12 May 2018 19:09:25 +0200 Message-Id: <20180512170925.23690-1-christophe.jaillet@wanadoo.fr> X-Mailer: git-send-email 2.17.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 'out' is allocated with 'kvzalloc()'. 'kvfree()' must be used to free it. Signed-off-by: Christophe JAILLET --- drivers/net/ethernet/mellanox/mlx5/core/vport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/vport.c b/drivers/net/ethernet/mellanox/mlx5/core/vport.c index 177e076b8d17..49968a4db758 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/vport.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/vport.c @@ -511,7 +511,7 @@ int mlx5_query_nic_vport_system_image_guid(struct mlx5_core_dev *mdev, *system_image_guid = MLX5_GET64(query_nic_vport_context_out, out, nic_vport_context.system_image_guid); - kfree(out); + kvfree(out); return 0; } -- 2.17.0