]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] configfs: Include linux/err.h in linux/configfs.h
authorJoel Becker <joel.becker@oracle.com>
Thu, 17 Jul 2008 23:54:19 +0000 (16:54 -0700)
committerMark Fasheh <mfasheh@suse.com>
Thu, 31 Jul 2008 23:21:12 +0000 (16:21 -0700)
We now use PTR_ERR() in the ->make_item() and ->make_group() operations.
Folks including configfs.h need err.h.

Signed-off-by: Joel Becker <joel.becker@oracle.com>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
fs/configfs/dir.c
include/linux/configfs.h

index 179589be063abe97ba0d10a1982bdea244488d36..2495f23e33f45b767a88e825f6606126c073814d 100644 (file)
@@ -1094,7 +1094,7 @@ static int configfs_mkdir(struct inode *dir, struct dentry *dentry, int mode)
        kfree(name);
        if (ret) {
                /*
-                * If item == NULL, then link_obj() was never called.
+                * If ret != 0, then link_obj() was never called.
                 * There are no extra references to clean up.
                 */
                goto out_put;
index d62c19ff041ccb64905558f1d634b2d202c968ac..0a5491baf0bc5c02f8bde7a0204220f489d89a32 100644 (file)
@@ -40,6 +40,7 @@
 #include <linux/list.h>
 #include <linux/kref.h>
 #include <linux/mutex.h>
+#include <linux/err.h>
 
 #include <asm/atomic.h>