Hello,

igrab return NULL on error.

Signed-off-by: Yan Zheng<[EMAIL PROTECTED]>
---
diff -ur linux-2.6.23-rc8/fs/anon_inodes.c linux/fs/anon_inodes.c
--- linux-2.6.23-rc8/fs/anon_inodes.c   2007-09-27 10:05:07.000000000 +0800
+++ linux/fs/anon_inodes.c      2007-09-27 10:18:26.000000000 +0800
@@ -87,8 +87,8 @@
                return -ENFILE;

        inode = igrab(anon_inode_inode);
-       if (IS_ERR(inode)) {
-               error = PTR_ERR(inode);
+       if (!inode) {
+               error = -ENOENT;
                goto err_put_filp;
        }
-
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to