… > +++ b/fs/overlayfs/namei.c > @@ -496,10 +496,13 @@ static int ovl_verify_fh(struct ovl_fs *ofs, struct dentry *dentry, > enum ovl_xattr ox, const struct ovl_fh *fh) > { > struct ovl_fh *ofh = ovl_get_fh(ofs, dentry, ox); > int err = 0; > > + if (!fh) > + return -ENODATA; > + > if (!ofh) > return -ENODATA; … How do you think about to reduce the scope for these local variables (according to adjustment possibilities for input parameter validation)? Regards, Markus