File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -1566,22 +1566,18 @@ static int fuse_fill_super(struct super_block *sb, struct fs_context *fsc)
1566
1566
* Require mount to happen from the same user namespace which
1567
1567
* opened /dev/fuse to prevent potential attacks.
1568
1568
*/
1569
- err = - EINVAL ;
1570
1569
if ((ctx -> file -> f_op != & fuse_dev_operations ) ||
1571
1570
(ctx -> file -> f_cred -> user_ns != sb -> s_user_ns ))
1572
- goto err ;
1571
+ return - EINVAL ;
1573
1572
ctx -> fudptr = & ctx -> file -> private_data ;
1574
1573
1575
1574
err = fuse_fill_super_common (sb , ctx );
1576
1575
if (err )
1577
- goto err ;
1576
+ return err ;
1578
1577
/* file->private_data shall be visible on all CPUs after this */
1579
1578
smp_mb ();
1580
1579
fuse_send_init (get_fuse_mount_super (sb ));
1581
1580
return 0 ;
1582
-
1583
- err :
1584
- return err ;
1585
1581
}
1586
1582
1587
1583
/*
You can’t perform that action at this time.
0 commit comments