File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -558,20 +558,20 @@ struct posix_acl *do_ovl_get_acl(struct mnt_idmap *idmap,
558
558
struct inode * inode , int type ,
559
559
bool rcu , bool noperm )
560
560
{
561
- struct inode * realinode = ovl_inode_real ( inode ) ;
561
+ struct inode * realinode ;
562
562
struct posix_acl * acl ;
563
563
struct path realpath ;
564
564
565
- if (!IS_POSIXACL (realinode ))
566
- return NULL ;
567
-
568
565
/* Careful in RCU walk mode */
569
- ovl_i_path_real (inode , & realpath );
570
- if (!realpath . dentry ) {
566
+ realinode = ovl_i_path_real (inode , & realpath );
567
+ if (!realinode ) {
571
568
WARN_ON (!rcu );
572
569
return ERR_PTR (- ECHILD );
573
570
}
574
571
572
+ if (!IS_POSIXACL (realinode ))
573
+ return NULL ;
574
+
575
575
if (rcu ) {
576
576
/*
577
577
* If the layer is idmapped drop out of RCU path walk
You can’t perform that action at this time.
0 commit comments