mirror of
https://github.com/opnsense/src.git
synced 2026-06-12 18:20:49 -04:00
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
1 changed files with 0 additions and 2 deletions
|
|
@ -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…
Reference in a new issue