From: Erez Zadok Date: Fri, 10 Feb 2012 20:36:44 +0000 (-0500) Subject: Unionfs: properly check for error in ->mount X-Git-Url: https://git.fsl.cs.sunysb.edu/?a=commitdiff_plain;h=ea9c81531f1d5dc140418843f2b12bbb6c35c787;p=unionfs-3.9.y.git Unionfs: properly check for error in ->mount Record dev_name correctly for branch-management. Signed-off-by: Erez Zadok --- 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;