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,
558558 struct inode * inode , int type ,
559559 bool rcu , bool noperm )
560560{
561- struct inode * realinode = ovl_inode_real ( inode ) ;
561+ struct inode * realinode ;
562562 struct posix_acl * acl ;
563563 struct path realpath ;
564564
565- if (!IS_POSIXACL (realinode ))
566- return NULL ;
567-
568565 /* 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 ) {
571568 WARN_ON (!rcu );
572569 return ERR_PTR (- ECHILD );
573570 }
574571
572+ if (!IS_POSIXACL (realinode ))
573+ return NULL ;
574+
575575 if (rcu ) {
576576 /*
577577 * If the layer is idmapped drop out of RCU path walk
You can’t perform that action at this time.
0 commit comments