Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755829AbdDEOzh (ORCPT ); Wed, 5 Apr 2017 10:55:37 -0400 Received: from mout.web.de ([212.227.17.12]:55686 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755790AbdDEOy6 (ORCPT ); Wed, 5 Apr 2017 10:54:58 -0400 Subject: Re: [PATCH 1/5] IB/qib: Use kcalloc() in qib_init_iba7322_funcs() To: Yuval Shaia Cc: linux-rdma@vger.kernel.org, Doug Ledford , Hal Rosenstock , Mike Marciniszyn , Sean Hefty , LKML , kernel-janitors@vger.kernel.org References: <5e5e00d3-b6a4-7371-65be-c5fe387d26b3@users.sourceforge.net> <20170405143438.GC5006@yuval-lap> From: SF Markus Elfring Message-ID: Date: Wed, 5 Apr 2017 16:54:40 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.0 MIME-Version: 1.0 In-Reply-To: <20170405143438.GC5006@yuval-lap> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:vxTD/bUTNEO83AfUN4QOVHq4Et7nAiwwnqEnJA3jcQKO39wmx0d WJwcYuD3wqoIS7qzAYLgAa/qbdc9xtE/7fprNc0dKkclbLTOcdYfPhzLO17Hf6XtiYR0tCw 5sIJGCxzawVzke28vL/2UQKIyEw5gEAudoEU9y8Jpx5DYWibqYgiH/fLycN1Txnlgu7Jzof j/83zpw49YMXcgpjxAcPg== X-UI-Out-Filterresults: notjunk:1;V01:K0:labogaIKmcA=:yMHj6EKGXDcowDneKr8Bs8 UjPEJXzabvph5sH4hjPy6vhhZqVT/Wsh6ACejCerah/J7S6kNCHlSqae78i/O1oBp6dgjmmSs 3xghQ2/vfaSjVnGCD99iQ6yrmmed3T8nakqfPbrUimlC3JaePoLFvWM7/pa4hb68BQMf4Zo+P drqouh3UpbhgwlPkbBrYsJJf6atGdPQKOJrMSUwZOG95Fzq+2pvUWV/IgWsFkjoDHi7pceC5e 3iZV877dstCPrKI7sEmFn1/bmLOgyd4cMwso76mQBpkVyBgHSlvQejyDJ19MgEMkrehBNSgKL owy/R6UAfTLKzZqvuyHyfZvd2DAC9cpg+J9S+8IPaF+TrpWejXE/7quhQbclCbD0e1SpANq3/ T02fCXgOQ33beSLMa67d+/rLwNtPDtxJSUq+yvxKYzTM1a/dex8BfFmQxIcffbf3e4LRQEaF2 6U5C/BoII1A2LRO1OC/nv3u52294ldlkAdW8OxQQoRnjlBQpeC5VJ/+g8tYj5+Vl4JvUmdrMy CtPGLQQqB94sBna3vNIw5dBfVl6gJkhv3DQd/+fDAOSoG8MxGhg2VoMCM7e5vr7+7X9BH7fEw qDAK6WNbhIrsxkOiNiVyxAdPY7Kck13ovV+celJnzrJY8jmiiJ0zhCka6yiZiyRuUib5uqMo4 E5HtoSoOHP07nCV/Y83B2QHGciQCMC0CdwFAzU0XTRy0evD+lQ8MXN8uQKRZp6VP3hMVBxTXB Za5VnABsLcqXUYKf5i/JR3axHrG468GogNxwS1TB74SSuRiMa5DgAAVJ3aJtp/MeknKkWakUO F4Tk9bB Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 546 Lines: 18 >> @@ -7324,8 +7324,9 @@ struct qib_devdata *qib_init_iba7322_funcs(struct pci_dev *pdev, >> actual_cnt -= dd->num_pports; >> >> tabsize = actual_cnt; >> - dd->cspec->msix_entries = kzalloc(tabsize * >> - sizeof(struct qib_msix_entry), GFP_KERNEL); >> + dd->cspec->msix_entries = kcalloc(tabsize, >> + sizeof(*dd->cspec->msix_entries), >> + GFP_KERNEL); > > Are we fine with loosing the zeroing of the entries? How did you get this concern? Do you really miss such functionality from the other interface? Regards, Markus