Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp351214ybg; Fri, 12 Jun 2020 03:17:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxdZVlOWU82+rcw3iwglxFPoqgE1IzFOcvzNoqiZB3aRDcubbdd0Krr7DuzP58WAuaMfUAP X-Received: by 2002:a17:906:1917:: with SMTP id a23mr12296228eje.181.1591957050810; Fri, 12 Jun 2020 03:17:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591957050; cv=none; d=google.com; s=arc-20160816; b=opx8YHTbtlnkhZ0gTQPDuS9691sDEs6MQ5mlXk8IvISxRV/N3jK+Wj71d4g0VZM3jM XWEvjX05+WJF/+sGb3ld4pA64/Yk6C+Re/ze2UxlNYsJM30Kq/lfSeCQYNBIzrZ4RGCk kyQ5XQfamAHg6E4mtZr/HE+B7kk646z6idzj3d967DdHlrBcYJZiVgq9jsoHtVJ7DYFe K6xP6C1PdUBF8GeWXcVQN5ETmgXH05x0oyquXl/GtUWifJt8u2vyZbYY6QuuU5Oqkot9 K5jE8LLbLU5rQm09D7u7CzmpJ3TAeYwfzVW9mJQJ3PH3cNAHocELYf7DBY0Yra4AfNJg FmKA== 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 :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=X2fCHIdXrHzRkoEaHnCf85j8/wyrGvhzgm7oQvn161o=; b=NIid7eTFIS7aALJF277Ou54gPxqsTCd3qVbmwBuOfhypj7ft/Ula0bE+C36sXDgbiO hsy1LOj3GPbQSENB0sNovezxPEPYJMgBW4cADY5mjNlrgrPfnn0MzBuhSo1/MgqH/QF2 4Si5I1Iaw0DmwtEPC5FH+L3YiQthW1i4W0zyZN1bBlSmhJgXqrKoP1253zSu87yx/C3B U1AZ/fi5DAE19F/ZmCjj+/o1KwrD84TG993WZkOkvZPXVr0myjOs+L9x7+F0RGCmoq/R NwNSFWzNZNYBAfK4OSgMAyTLKlSwTTB/PcLOXSUOl7SDaeOhPRPP9v/NYHpAIJpZPgb/ gYRw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v22si3146842edy.558.2020.06.12.03.17.07; Fri, 12 Jun 2020 03:17:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726364AbgFLKPI (ORCPT + 99 others); Fri, 12 Jun 2020 06:15:08 -0400 Received: from smtprelay0080.hostedemail.com ([216.40.44.80]:56746 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725927AbgFLKPF (ORCPT ); Fri, 12 Jun 2020 06:15:05 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay06.hostedemail.com (Postfix) with ESMTP id 5E8FE18002A55; Fri, 12 Jun 2020 10:15:02 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,,RULES_HIT:41:355:379:599:800:960:973:982:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1539:1593:1594:1711:1714:1730:1747:1777:1792:2194:2199:2393:2553:2559:2562:2828:2895:2901:3138:3139:3140:3141:3142:3350:3622:3865:3866:3867:3871:3872:3873:3874:4321:5007:6742:7514:10004:10400:10848:10967:11026:11232:11658:11914:12297:12740:12760:12895:13069:13311:13357:13439:14181:14659:14721:21080:21212:21433:21451:21627:30012:30054:30070:30090:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:12,LUA_SUMMARY:none X-HE-Tag: tree29_1c128ad26ddb X-Filterd-Recvd-Size: 2024 Received: from XPS-9350.home (unknown [47.151.136.130]) (Authenticated sender: joe@perches.com) by omf19.hostedemail.com (Postfix) with ESMTPA; Fri, 12 Jun 2020 10:14:59 +0000 (UTC) Message-ID: <427be84b1154978342ef861f1f4634c914d03a94.camel@perches.com> Subject: Re: [PATCH] xdp_rxq_info_user: Replace malloc/memset w/calloc From: Joe Perches To: Jesper Dangaard Brouer , Gaurav Singh Cc: Alexei Starovoitov , Daniel Borkmann , "David S. Miller" , Jakub Kicinski , Jesper Dangaard Brouer , John Fastabend , Martin KaFai Lau , Song Liu , Yonghong Song , Andrii Nakryiko , KP Singh , "open list:XDP (eXpress Data Path)" , "open list:XDP (eXpress Data Path)" , open list Date: Fri, 12 Jun 2020 03:14:58 -0700 In-Reply-To: <20200612084244.4ab4f6c6@carbon> References: <20200611150221.15665-1-gaurav1086@gmail.com> <20200612003640.16248-1-gaurav1086@gmail.com> <20200612084244.4ab4f6c6@carbon> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.36.2-0ubuntu1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2020-06-12 at 08:42 +0200, Jesper Dangaard Brouer wrote: > On Thu, 11 Jun 2020 20:36:40 -0400 > Gaurav Singh wrote: > > > Replace malloc/memset with calloc > > > > Fixes: 0fca931a6f21 ("samples/bpf: program demonstrating access to xdp_rxq_info") > > Signed-off-by: Gaurav Singh > > Above is the correct use of Fixes + Signed-off-by. > > Now you need to update/improve the description, to also > mention/describe that this also solves the bug you found. This is not a fix, it's a conversion of one correct code to a shorter one.