]> git.karo-electronics.de Git - karo-tx-linux.git/commit
proc: return -ENOMEM when inode allocation failed
authoryan <clouds.yan@gmail.com>
Fri, 7 Sep 2012 00:25:06 +0000 (10:25 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 12 Sep 2012 07:08:48 +0000 (17:08 +1000)
commite387665850414cc8b426de43502a9c27f220cf12
treeb1b45494479edf92517562bcd6e119167e76cc16
parent122896e3fdfb06c132176bcf4febb50baeb8c4e3
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