]> git.karo-electronics.de Git - karo-tx-linux.git/commit
proc: return -ENOMEM when inode allocation failed
authoryan <clouds.yan@gmail.com>
Thu, 13 Sep 2012 01:01:29 +0000 (11:01 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 19 Sep 2012 05:30:31 +0000 (15:30 +1000)
commitf17058681394cb8e69be3dbeb9fa63b27ec428e2
treea85f57cb2db8f7971a9c75f422c1e0565459831c
parente54c17340fc27590f5372530824053de3f65b2bf
proc: return -ENOMEM when inode allocation failed

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

Signed-off-by: yan <clouds.yan@gmail.com>
Cc: Ryan Mallon <rmallon@gmail.com>
Cc: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/proc/generic.c