linux-mips
[Top] [All Lists]

Re: [PATCH] TC: Delete an error message for a failed memory allocation i

To: "Maciej W. Rozycki" <macro@linux-mips.org>, SF Markus Elfring <elfring@users.sourceforge.net>
Subject: Re: [PATCH] TC: Delete an error message for a failed memory allocation in tc_bus_add_devices()
From: Joe Perches <joe@perches.com>
Date: Sun, 10 Dec 2017 18:05:31 -0800
Cc: linux-mips@linux-mips.org, Ralf Bächle <ralf@linux-mips.org>, LKML <linux-kernel@vger.kernel.org>, kernel-janitors@vger.kernel.org
In-reply-to: <alpine.LFD.2.21.1712102140570.4266@eddie.linux-mips.org>
List-archive: <http://www.linux-mips.org/archives/linux-mips/>
List-help: <mailto:ecartis@linux-mips.org?Subject=help>
List-id: linux-mips <linux-mips.eddie.linux-mips.org>
List-owner: <mailto:ralf@linux-mips.org>
List-post: <mailto:linux-mips@linux-mips.org>
List-software: Ecartis version 1.0.0
List-subscribe: <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips>
List-unsubscribe: <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <bfb63956-346c-aa17-5b06-fbe19ff0a5e3@users.sourceforge.net> <alpine.LFD.2.21.1712102140570.4266@eddie.linux-mips.org>
Sender: linux-mips-bounce@linux-mips.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.


<Prev in Thread] Current Thread [Next in Thread>