]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
proc: return -ENOMEM when inode allocation failed
authoryan <clouds.yan@gmail.com>
Fri, 28 Sep 2012 00:22:16 +0000 (10:22 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 4 Oct 2012 05:04:03 +0000 (15:04 +1000)
commit89ee30ab5a2ba6f55f86e54d979405b532e0b78d
tree0f5382eb6333c16c712069be62860ab4212a417c
parentc9d170e0d0b89a82ff62ab165edd89b6295c9ee8
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