]> git.karo-electronics.de Git - karo-tx-linux.git/commit
proc: return -ENOMEM when inode allocation failed
authoryan <clouds.yan@gmail.com>
Wed, 26 Sep 2012 01:34:54 +0000 (11:34 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 26 Sep 2012 05:45:37 +0000 (15:45 +1000)
commit5dcb1cbe2b303599e0bef3dba43a9c0c1e6f1b36
tree01c17833966988df074dd5d5d108ad3fea6f9614
parent7c48abdbc118e6926ad0995b9fe9cc7a29590041
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