From: yan Date: Fri, 5 Oct 2012 00:15:38 +0000 (-0700) Subject: proc: return -ENOMEM when inode allocation failed X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~12^2~44 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=620727506dc6da0562fa4f6950dedb8a51bd8237;p=pandora-kernel.git 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 Cc: Ryan Mallon Cc: Cong Wang Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed