Subject: Re: [PATCH 1/2] powerpc/platforms/cell: Delete an error message for a failed memory allocation in three functions

From: Michal Suchánek <[email-masked]>
Date: Thu, 5 Oct 2017 22:29:49 +0200

On Thu, 5 Oct 2017 22:06:11 +0200 (CEST)
Julia Lawall <[email-masked]> wrote:

> On Thu, 5 Oct 2017, Michal Such=C3=A1nek wrote:
>=20
> > Hello,
> >
> > On Thu, 5 Oct 2017 21:36:26 +0200
> > SF Markus Elfring <[email-masked]> wrote:
> > =20
> > > From: Markus Elfring <[email-masked]>
> > > Date: Thu, 5 Oct 2017 21:04:30 +0200
> > >
> > > Omit extra messages for a memory allocation failure in these
> > > functions. =20
> >
> > this is bogus. All these functions return -1 on any error. Until
> > they reflect the error in their return value (and it is properly
> > propagated to the user) there is no way to tell WTF failed without
> > the message. =20
>=20
> A backtrace will be generated.
>=20

I do not see why it would. I do not expect the kernel to generate a
stack trace every time memory allocation fails. With all the hooks in
the code it is hard to tell, though.

Thanks

Michal