]> 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>
Thu, 13 Sep 2012 07:28:17 +0000 (17:28 +1000)
commit17ae7fe70b359fc2e26d232f5228ee0baa3777c2
tree626d442e445a1a0e7c30e4fd64d8c3e51d85dc9f
parent9b2d97c149eb68c3bddb4f8f576fd8351a0b05b2
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