Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1281143imm; Tue, 15 May 2018 17:13:27 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpStIVvhQyvJCNnrfWbdKt6yhnCZZ3hlbFaNbIiIjUAOMDu34qPxunliuxf2Yn/L5iIgJZH X-Received: by 2002:a63:7848:: with SMTP id t69-v6mr6915909pgc.380.1526429606933; Tue, 15 May 2018 17:13:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526429606; cv=none; d=google.com; s=arc-20160816; b=k5zPSA8IJj1A8aveQ4vfHSB3x/DEAca2C69rayQbCTXXyGiMSGBG/7+RxqYtxdsrKb paGMV8KU7tzRkYLInKcAV2I0JfFU5PAqyWmd4oIgcRxQx9oFWuSxSvMMBEfRr+p1HJde JiWWlYr1fo8S1zHSjaonapVDI98NH/JJE3CB5eBZB9mqO7H7ZrJL7pUT7H/7Ziwss7+S NwpKEaqlCB0p+tgjtdVCP1FToWfwfkqFhqhEOH4MgJqbYCvrSQBwCi/3/YiwSSARB58L IEJBAo3ycEI+9LCakJAb3CgBrMwHnPRxAvXzWN5gJt10EfFmreGuUIRtsTxOY8fRgVwP Bu5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=iM5LdLaw3Hd6cc95KoEh7qS84/LmlcGbiXIFHSyyI+o=; b=nKbBANtCMRxthU2Ox1peIucuj565QgEMOwTmzwrva9633thKSiuATTKSE4YMV+6pPM Nrc7KNTQPz1dRZtr5T+PNkhAkThJ1gdhBZvHqhAs9ukBW5V5CO8qfLzr76zzY4gm+o4A 5prbfAU1jt30utH4EUp4na06kDP4OKNIAKIajn8bQeQmzOsIyOuej2kMjzAZ+eUjyVXx 3FRg6dctAwFgY47b/t9+eYUTpWrLqAw/oh+Sy09V3s7xkQXNCSyX23G2IEnV4x4hWenY xHRQi4SEKlzev0iUBrMkQoabot/HaGEKEE+I39zJbK3vfEm/9HtjUoAXFuRalqhGZ4JN RJQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dev-mellanox-co-il.20150623.gappssmtp.com header.s=20150623 header.b=znQwB3Of; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mellanox.co.il Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d18-v6si1196307plr.265.2018.05.15.17.13.11; Tue, 15 May 2018 17:13:26 -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=@dev-mellanox-co-il.20150623.gappssmtp.com header.s=20150623 header.b=znQwB3Of; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mellanox.co.il Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752145AbeEPANA (ORCPT + 99 others); Tue, 15 May 2018 20:13:00 -0400 Received: from mail-lf0-f65.google.com ([209.85.215.65]:33743 "EHLO mail-lf0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751489AbeEPAM6 (ORCPT ); Tue, 15 May 2018 20:12:58 -0400 Received: by mail-lf0-f65.google.com with SMTP id h9-v6so2901051lfi.0 for ; Tue, 15 May 2018 17:12:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dev-mellanox-co-il.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=iM5LdLaw3Hd6cc95KoEh7qS84/LmlcGbiXIFHSyyI+o=; b=znQwB3OfeUxL6+/AnZ7a0QBEmO8mw9egPBwl8Ur7g1a+G6UvZqGgp4DdC3nQDZoBhe JmlIas/c0pLaKCjlyFRr5xjIPaUWzSpgk9d8lU/PNqk4ZmZP/iNYMpPXCsDqjJ6LBJdD TTCifwX42N8UQoXDoNIWpyU0Df8QT8sRarZkjK7w9rtf08h/AKOchG85d0rxIbu1THbK mK5e4iWffpp8SduCRfTQI6cjhTDh848DTqw07jhvaf9fMsJE8WbmlMVhPzr1yG3cfggB 47EdsgqEOsKNC41WTCxktODjQOsj1f0v3P97Ti2EhV34bg2KX8fAiWknR3tga9HZaXbK NR7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=iM5LdLaw3Hd6cc95KoEh7qS84/LmlcGbiXIFHSyyI+o=; b=QJPXWyWwV0rMgkw0ZK1jZJO82xMEX+21HPCE83oyfrI9IsStbcc9TSHco+MSSMZ0cW agOqYuwwOaaWOnJKUs9T4DzrtCQ0aVFfzYZi4r7P9DcyKqkJFkLAmo42JVrPYxcOD0w0 VKNmexwuY1rQtXX//5bSjctJWffSEMLneUhyBF1TAxbxoGmy92m3hLcSQOpRH8/LlDjI jBhrzLWup4hMsWbRikJo/33c1rCWLGHHlXJ1m4FFyiYmmopFiBPKmVa5s1rRButRlkyt vNf8ThhrFhsUKRW4DZ8VyXvalPygQN9J3o5j1CHV3++u8yBJdSEsm7mfTQ+HKKKZUQul JEvg== X-Gm-Message-State: ALKqPwdprBZm4kfKrs/ZaS6OVBnNwQaw7uRWDzBfFUnVHVdcGOy+o39U bj3fRZ/IUNLIeHpE9ZNNnkhrpJsAHIhDoMaVfzrF5A== X-Received: by 2002:a19:23c8:: with SMTP id j191-v6mr12756626lfj.1.1526429576441; Tue, 15 May 2018 17:12:56 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a19:2943:0:0:0:0:0 with HTTP; Tue, 15 May 2018 17:12:36 -0700 (PDT) In-Reply-To: <20180515222125.GA20160@ziepe.ca> References: <20180513070041.24246-1-christophe.jaillet@wanadoo.fr> <20180515222125.GA20160@ziepe.ca> From: Saeed Mahameed Date: Tue, 15 May 2018 17:12:36 -0700 Message-ID: Subject: Re: [PATCH v2] {net, IB}/mlx5: Use 'kvfree()' for memory allocated by 'kvzalloc()' To: Jason Gunthorpe Cc: Christophe JAILLET , Saeed Mahameed , Matan Barak , Leon Romanovsky , Doug Ledford , "David S. Miller" , Linux Netdev List , RDMA mailing list , linux-kernel , kernel-janitors@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 15, 2018 at 3:21 PM, Jason Gunthorpe wrote: > On Sun, May 13, 2018 at 09:00:41AM +0200, Christophe JAILLET wrote: >> When 'kvzalloc()' is used to allocate memory, 'kvfree()' must be used to >> free it. >> >> Signed-off-by: Christophe JAILLET >> --- >> v1 -> v2: More places to update have been added to the patch >> --- >> drivers/infiniband/hw/mlx5/cq.c | 2 +- >> drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c | 2 +- >> drivers/net/ethernet/mellanox/mlx5/core/vport.c | 6 +++--- >> 3 files changed, 5 insertions(+), 5 deletions(-) > > I agree with Eric on the need for fixes lines in v3.. > >> diff --git a/drivers/infiniband/hw/mlx5/cq.c b/drivers/infiniband/hw/mlx5/cq.c >> index 77d257ec899b..6d52ea03574e 100644 >> --- a/drivers/infiniband/hw/mlx5/cq.c >> +++ b/drivers/infiniband/hw/mlx5/cq.c >> @@ -849,7 +849,7 @@ static int create_cq_user(struct mlx5_ib_dev *dev, struct ib_udata *udata, >> return 0; >> >> err_cqb: >> - kfree(*cqb); >> + kvfree(*cqb); > > For the infiniband part: > > Acked-by: Jason Gunthorpe > > Since this is mostly ethernet, can it go through netdev? thanks > for the mlx5 core parts: Acked-by: Saeed Mahameed Yes i will take v3 to mlx5-next branch. > Jason > -- > To unsubscribe from this list: send the line "unsubscribe linux-rdma" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html