From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752275AbdLKCFg (ORCPT ); Sun, 10 Dec 2017 21:05:36 -0500 Received: from smtprelay0232.hostedemail.com ([216.40.44.232]:40191 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751637AbdLKCFf (ORCPT ); Sun, 10 Dec 2017 21:05:35 -0500 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::,RULES_HIT:41:355:379:541:599:973:988:989:1042:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1540:1593:1594:1711:1730:1747:1777:1792:2194:2198:2199:2200:2393:2553:2559:2562:2693:2828:2899:3138:3139:3140:3141:3142:3352:3622:3865:3866:3868:3870:3871:4250:4321:5007:7903:8660:10004:10400:10848:11026:11232:11658:11914:12114:12296:12740:12760:12895:13069:13095:13148:13230:13255:13311:13357:13439:14096:14097:14659:14721:21080:21212:21433:21627:30003:30029:30054: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:1,LUA_SUMMARY:none X-HE-Tag: day19_87c653c0ac620 X-Filterd-Recvd-Size: 1838 Message-ID: <1512957931.26342.31.camel@perches.com> Subject: Re: [PATCH] TC: Delete an error message for a failed memory allocation in tc_bus_add_devices() From: Joe Perches To: "Maciej W. Rozycki" , SF Markus Elfring Cc: linux-mips@linux-mips.org, Ralf =?ISO-8859-1?Q?B=E4chle?= , LKML , kernel-janitors@vger.kernel.org Date: Sun, 10 Dec 2017 18:05:31 -0800 In-Reply-To: References: Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.26.1-1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 2017-12-10 at 21:41 +0000, Maciej W. Rozycki wrote: > On Sun, 10 Dec 2017, SF Markus Elfring wrote: > > > Omit an extra message for a memory allocation failure in this function. > > > > This issue was detected by using the Coccinelle software. > > And the problem here is? Markus' terrible commit messages. Generically, any OOM via a malloc like call has a dump_stack() which shows a stack trace unless __GFP_NOWARN is used. So this message is generally unnecessary as the dump_stack() will show the tc_bus_add_devices function name and (now hashed) value of the function address. What will be different is the particular slot # of the tc_dev will no longer be shown. Really though, if there's an OOM on the init, there are larger problems and the system will be unusable.