From 77905b14ee845792bbc43a55d77ca5380cb68a9b Mon Sep 17 00:00:00 2001 From: Erez Zadok Date: Thu, 2 Feb 2012 22:50:16 -0500 Subject: [PATCH] Unionfs: properly check for error in ->mount Record dev_name correctly for branch-management. Signed-off-by: Erez Zadok --- fs/unionfs/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/unionfs/main.c b/fs/unionfs/main.c index 87cd1fcdfe1..ee78f1d90c9 100644 --- a/fs/unionfs/main.c +++ b/fs/unionfs/main.c @@ -689,7 +689,7 @@ static struct dentry *unionfs_mount(struct file_system_type *fs_type, struct dentry *dentry; dentry = mount_nodev(fs_type, flags, raw_data, unionfs_read_super); - if (!PTR_ERR(dentry)) + if (!IS_ERR(dentry)) UNIONFS_SB(dentry->d_sb)->dev_name = kstrdup(dev_name, GFP_KERNEL); return dentry; -- 2.34.1