Received: by 10.223.164.202 with SMTP id h10csp1321868wrb; Wed, 15 Nov 2017 17:47:46 -0800 (PST) X-Google-Smtp-Source: AGs4zMYwQOFtDGk6JZhWV7lmIuLFfIW8oLOIu2LX0rONQqNVPihOgy/Bnh+XxcI8O6Wj88hJsUMp X-Received: by 10.84.229.137 with SMTP id c9mr25612plk.389.1510796866409; Wed, 15 Nov 2017 17:47:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510796866; cv=none; d=google.com; s=arc-20160816; b=pumlEF2iVUZwvuljA8vntY7Nqac3Ru2bzMMITUuojIfsbM3LDIlvXr/Ft61SINSVUT Aukvh6PdFkTuNNATq3axuEIbOY+9hNZqqRPpHhaoTXKZwM1nsGSohWLdrqh0KcsyoT6h CSjlXFhAwGnfjAkmhlP4l63O61P7TLz1IYmQRws62vvRJ6y/Ejt3R4r2YWh8uMS6YPr8 bn6ax4A/5KVfwOs2fP2eEjVVpjVHp7cAu0Qy9gcQ2+pN2rDZC4NTNM9WCoBNKosFrlC2 ICIRpiXWZTp4cTa9RHGluaANb3or3WfE7k64XFzD4UhZYvefRjL2X+EuIYejaeRgNkAg caDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date :arc-authentication-results; bh=djr/vFpVXyJtesKP0jCGK8BEuF0Sk9SoA6Zz4aJBvg4=; b=wbpVk6d8pFwMzAWf8W7DGP7bkI5VnojqNYl75Y/DPeIR2S8c5O4TOpTiB4lQxicpBR UCFXqRxTpRU+/HnbLRQ3+rX8e7heEaZLdYRdR2o4w8tLc7uhCHs/wAOVFzwPugS7PCON poU7VHpM5Y+eY0QKaGTiU4FTEg/MPOFDoCBVmBp+anyygzVFjgbP4iC1AQpGjU+y2IdA p9+fCXI98WKmyukA73Tv4vWhOepY+HcfThwfh6hov12CCyzj+8kW7t7IooGVpDyrVrHU QilRB/3vcoWT1Xtp0ZZC2P6zbYXhG5HTIJdHu5Ysoc/VrgY9i8FW3mmPBbVgW9l1w1px k/5w== 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 76si7778482pgd.240.2017.11.15.17.47.30; Wed, 15 Nov 2017 17:47:46 -0800 (PST) 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 S933667AbdKPBiD (ORCPT + 90 others); Wed, 15 Nov 2017 20:38:03 -0500 Received: from shards.monkeyblade.net ([184.105.139.130]:37780 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933371AbdKPBhy (ORCPT ); Wed, 15 Nov 2017 20:37:54 -0500 Received: from localhost (unknown [61.40.109.130]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 9AEB813E85D1F; Wed, 15 Nov 2017 17:37:52 -0800 (PST) Date: Thu, 16 Nov 2017 10:37:50 +0900 (KST) Message-Id: <20171116.103750.1000550484486327577.davem@davemloft.net> To: gomonovych@gmail.com Cc: Ariel.Elior@cavium.com, everest-linux-l2@cavium.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] qed: fix unnecessary call to memset cocci warnings From: David Miller In-Reply-To: <1510775895-16258-1-git-send-email-gomonovych@gmail.com> References: <1510775895-16258-1-git-send-email-gomonovych@gmail.com> X-Mailer: Mew version 6.7 on Emacs 25.3 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Wed, 15 Nov 2017 17:37:54 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Vasyl Gomonovych Date: Wed, 15 Nov 2017 20:58:15 +0100 > @@ -1277,11 +1277,10 @@ static struct qed_dcbx_get *qed_dcbnl_get_dcbx(struct qed_hwfn *hwfn, > { > struct qed_dcbx_get *dcbx_info; > > - dcbx_info = kmalloc(sizeof(*dcbx_info), GFP_ATOMIC); > + dcbx_info = kzmalloc(sizeof(*dcbx_info), GFP_ATOMIC); Thanks for not even compile testing your patch. From 1584176532244896356@xxx Wed Nov 15 23:27:51 +0000 2017 X-GM-THRID: 1584176532244896356 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread