The patch titled anon_inodes.c: fix error check in anon_inode_getfd has been added to the -mm tree. Its filename is anon_inodesc-fix-error-check-in-anon_inode_getfd.patch *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: anon_inodes.c: fix error check in anon_inode_getfd From: "Yan Zheng" <yanzheng@xxxxxxxx> Hello, igrab return NULL on error. Signed-off-by: Yan Zheng <yanzheng@xxxxxxxx> Cc: Davide Libenzi <davidel@xxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- fs/anon_inodes.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff -puN fs/anon_inodes.c~anon_inodesc-fix-error-check-in-anon_inode_getfd fs/anon_inodes.c --- a/fs/anon_inodes.c~anon_inodesc-fix-error-check-in-anon_inode_getfd +++ a/fs/anon_inodes.c @@ -87,8 +87,8 @@ int anon_inode_getfd(int *pfd, struct in return -ENFILE; inode = igrab(anon_inode_inode); - if (IS_ERR(inode)) { - error = PTR_ERR(inode); + if (!inode) { + error = -ENOENT; goto err_put_filp; } _ Patches currently in -mm which might be from yanzheng@xxxxxxxx are anon_inodesc-fix-error-check-in-anon_inode_getfd.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