The patch titled Subject: proc: return -ENOMEM when inode allocation failed has been added to the -mm tree. Its filename is proc-return-enomem-when-inode-allocation-failed.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: yan <clouds.yan@xxxxxxxxx> Subject: 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@xxxxxxxxx> Cc: Ryan Mallon <rmallon@xxxxxxxxx> Cc: Cong Wang <xiyou.wangcong@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- fs/proc/generic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN fs/proc/generic.c~proc-return-enomem-when-inode-allocation-failed fs/proc/generic.c --- a/fs/proc/generic.c~proc-return-enomem-when-inode-allocation-failed +++ a/fs/proc/generic.c @@ -427,7 +427,7 @@ struct dentry *proc_lookup_de(struct pro if (!memcmp(dentry->d_name.name, de->name, de->namelen)) { pde_get(de); spin_unlock(&proc_subdir_lock); - error = -EINVAL; + error = -ENOMEM; inode = proc_get_inode(dir->i_sb, de); goto out_unlock; } _ Patches currently in -mm which might be from clouds.yan@xxxxxxxxx are proc-return-enomem-when-inode-allocation-failed.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html