Re: [PATCH 1/3] proc: return -ENOMEM when inode allocation failed

From: Andrew Morton
Date: Tue Sep 04 2012 - 18:41:36 EST


On Tue, 4 Sep 2012 17:22:15 +0800
yan yan <clouds.yan@xxxxxxxxx> wrote:

> 2012/9/4 Cong Wang <xiyou.wangcong@xxxxxxxxx>:
> > On 09/03/2012 10:14 PM, yan wrote:
> >>
> >> Signed-off-by: yan <clouds.yan@xxxxxxxxx>
> >
> >
> > Please provide a changelog to explain why we need this patch.
>
> I think the title is self explained.

Given this review feedback, the title alone was obviously insufficient!

I provided the following changelog text:

: If proc_get_inode() returns NULL then presumably it encountered memory
: exhaustion. proc_lookup_de() should return -ENOMEM in this case, not
: -EINVAL.


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/