Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp2675471imm; Wed, 16 May 2018 17:44:12 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqUGia5V+sCBBrKNAmzMH3iNUFpM0UnDqNOwcgE80EARPPcht600th9GZlpODcXnQzgnA5J X-Received: by 2002:a65:6205:: with SMTP id d5-v6mr2436450pgv.416.1526517852453; Wed, 16 May 2018 17:44:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526517852; cv=none; d=google.com; s=arc-20160816; b=vsn1VsX71SRhq5BuqJxSo4cTG/shFdjh9BIeLAGQlRXqY/ltt/EQYVzB6cJijo0qri kTNewvfg/7BV3Fjsza6/YfNDcgQA2uJ/mXUXFKENb+4jvardDtTNtmTdt1KueKSnVshV hqgHdux8sxVW2Mj9oblGn2w7ZxCAL0ginqbtkIqRsuP0prbf6xXlRtVUKPssnsxo7CIl lIDgeZjO5cyF2aiwaxzfbsUhT4PH7Ta81U0oNfW2sAAacb29ffTPl2+1tQwIEPDQkgBi 1w5jgRPVX2SxM516leDqNyaioesRLCbdnnJzPo9RbZFhf0wh6r0+oWr9zUJvUVqiM3Oy 94ew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:spamdiagnosticmetadata:spamdiagnosticoutput :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=XQCgmsxQpTFB4UgMQPbDJVfeL/xXmBU5Pn7Qc0FLqgY=; b=AhXjP+bR/T7691g8QwC/+FEuPnH1cqevXQMVEI6gHA8xo6fi0xgw9lhLyD5w2WxVbw at9ma1UIBJffCPTKrQEVFq08HtLo3Bou8+dqwBm1jt3oGo4/wBkA5W2Nsz5WdKz9OGvR wZeY0tk62Kz3sTCtzmLxYIabZRP+OOJ3qq6Z5Ku1tNBxgFhwAWrrnDITAUQymY+5sjwy eMdrItT9xmDCv7Nay6VeGi1NaPEDBeVIbclSn45+1tLpCM9aylBlKdOiBXXia6KQsllt pmaAXZ4/jeLLFFfVLvL9eT21W39iscv/IYXUzBBjG8opujWRKNBMW/WTZt7EJ3QZ72e1 sZ1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@Mellanox.com header.s=selector1 header.b=VPJic71P; 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=pass (p=NONE sp=NONE dis=NONE) header.from=mellanox.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o189-v6si3823429pfo.20.2018.05.16.17.43.57; Wed, 16 May 2018 17:44:12 -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=@Mellanox.com header.s=selector1 header.b=VPJic71P; 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=pass (p=NONE sp=NONE dis=NONE) header.from=mellanox.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751649AbeEQAml (ORCPT + 99 others); Wed, 16 May 2018 20:42:41 -0400 Received: from mail-eopbgr20083.outbound.protection.outlook.com ([40.107.2.83]:29312 "EHLO EUR02-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751163AbeEQAmj (ORCPT ); Wed, 16 May 2018 20:42:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=XQCgmsxQpTFB4UgMQPbDJVfeL/xXmBU5Pn7Qc0FLqgY=; b=VPJic71PL9lvrJNIr4OWwvI7n8Wt5B1usU1erVa59I2CB1/8MCYPs6+WoZfhYxm8OQOulN86RFsrZd1lxtvDD3opyxYWJXM3Crb8gphzEI+64AyNK9UQgmd3BhPePPPPjGZqa1VCk7N8Bc7NoafZ5jAvmEKStHphUMd3fPH8/UQ= Received: from DB6PR0502MB2901.eurprd05.prod.outlook.com (10.172.249.140) by DB6PR0502MB2869.eurprd05.prod.outlook.com (10.172.248.148) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.755.16; Thu, 17 May 2018 00:42:34 +0000 Received: from DB6PR0502MB2901.eurprd05.prod.outlook.com ([fe80::1049:eaa1:c81c:dacb]) by DB6PR0502MB2901.eurprd05.prod.outlook.com ([fe80::1049:eaa1:c81c:dacb%18]) with mapi id 15.20.0755.018; Thu, 17 May 2018 00:42:34 +0000 From: Saeed Mahameed To: "christophe.jaillet@wanadoo.fr" , "Matan Barak" , "jgg@ziepe.ca" , "davem@davemloft.net" , "leon@kernel.org" , "dledford@redhat.com" CC: "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-rdma@vger.kernel.org" , "kernel-janitors@vger.kernel.org" Subject: Re: [PATCH v3] {net, IB}/mlx5: Use 'kvfree()' for memory allocated by 'kvzalloc()' Thread-Topic: [PATCH v3] {net, IB}/mlx5: Use 'kvfree()' for memory allocated by 'kvzalloc()' Thread-Index: AQHT7UklsJBYwYQZGUe+uYxkekGfKKQzFUwA Date: Thu, 17 May 2018 00:42:33 +0000 Message-ID: <52e933f9bab99e5b04d7faac21ef4371776ed2e9.camel@mellanox.com> References: <20180516190720.11633-1-christophe.jaillet@wanadoo.fr> In-Reply-To: <20180516190720.11633-1-christophe.jaillet@wanadoo.fr> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: Evolution 3.28.1 (3.28.1-2.fc28) authentication-results: spf=none (sender IP is ) smtp.mailfrom=saeedm@mellanox.com; x-originating-ip: [2601:647:4000:4586::67da] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DB6PR0502MB2869;7:CbbCT5coQJRSAyn0GHpU6hiUmXQ7UJFUjt+c4k0g3eo51FtRoHVY5cMTseh4Cykwoiv9MOAdTyTvfvGr9ZXglIb5wbbQhEstl/05ZMUe5dq/DNRXS9EDwE2QGvYgJ+bG8XfahaloqmrJb4Ur7B/ON1EHWfEgsgq9d7D+e+g5V1pGmdxTsjwPmrqEjYbNt0Z/PMTuNRPvwnkIvNR61DXLiaD/hyuiw4Kdx/8d6NGWVOhTLDqepiltwetibnrNd5xg x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(48565401081)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020);SRVR:DB6PR0502MB2869; x-ms-traffictypediagnostic: DB6PR0502MB2869: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(155761271638844); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(3231254)(944501410)(52105095)(10201501046)(3002001)(6055026)(149027)(150027)(6041310)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123558120)(20161123560045)(6072148)(201708071742011)(7699016);SRVR:DB6PR0502MB2869;BCL:0;PCL:0;RULEID:;SRVR:DB6PR0502MB2869; x-forefront-prvs: 067553F396 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(39380400002)(346002)(39860400002)(396003)(376002)(366004)(189003)(199004)(377424004)(76176011)(102836004)(6506007)(3280700002)(59450400001)(4326008)(99286004)(6116002)(3660700001)(229853002)(6246003)(68736007)(97736004)(6512007)(14454004)(53936002)(8936002)(50226002)(105586002)(106356001)(81156014)(186003)(5660300001)(305945005)(36756003)(8676002)(81166006)(2906002)(86362001)(5250100002)(2501003)(478600001)(118296001)(25786009)(2900100001)(6486002)(46003)(6436002)(446003)(11346002)(2201001)(110136005)(486006)(316002)(7736002)(54906003)(2616005)(476003)(99106002);DIR:OUT;SFP:1101;SCL:1;SRVR:DB6PR0502MB2869;H:DB6PR0502MB2901.eurprd05.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: /yMU9bn2NgtArhk6h9ggPYrevIAzoRcOsFG912spkAYxJ1c6G0pqShOSqxC1pWCP/Omn97pwaQP/LnBvjVH0y35SJQ3Ncs/L/CB06g7OgM1oM07jTfvTOFAzrcwa1NUvSpkHV2bnq5yZFnbegnJZkUsI3pnXS0EJLre7ksM6z9DHBGHvwoYL3mB7+l3k3cpQ spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: d999b4c7-27aa-4852-6873-08d5bb8f1473 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: d999b4c7-27aa-4852-6873-08d5bb8f1473 X-MS-Exchange-CrossTenant-originalarrivaltime: 17 May 2018 00:42:33.9524 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0502MB2869 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gV2VkLCAyMDE4LTA1LTE2IGF0IDIxOjA3ICswMjAwLCBDaHJpc3RvcGhlIEpBSUxMRVQgd3Jv dGU6DQo+IFdoZW4gJ2t2emFsbG9jK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