cache: remove leftover assert in vn_fullpath_any_smr
It is only valid when !slash_prefixed. For slash_prefixed the length is properly accounted for later. Reported by: markj (syzkaller)
This commit is contained in:
parent
d709c07b34
commit
f9cdb0775e
@ -2834,8 +2834,6 @@ vn_fullpath_any_smr(struct vnode *vp, struct vnode *rdir, char *buf,
|
||||
|
||||
orig_buflen = *buflen;
|
||||
|
||||
MPASS(*buflen >= 2);
|
||||
|
||||
if (!slash_prefixed) {
|
||||
MPASS(*buflen >= 2);
|
||||
*buflen -= 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user