Print this page
7307 Fixing 5780 introduced a regression
*** 391,403 ****
fdinfo.pr_size = -1;
error = elfnote(vp, &offset, NT_FDINFO,
sizeof (fdinfo), &fdinfo, rlimit, credp);
VN_RELE(fvp);
VN_RELE(vroot);
- if (error)
goto done;
continue;
}
if (fvp->v_type == VSOCK)
fdinfo.pr_fileflags |= sock_getfasync(fvp);
--- 391,404 ----
fdinfo.pr_size = -1;
error = elfnote(vp, &offset, NT_FDINFO,
sizeof (fdinfo), &fdinfo, rlimit, credp);
VN_RELE(fvp);
+ if (error) {
VN_RELE(vroot);
goto done;
+ }
continue;
}
if (fvp->v_type == VSOCK)
fdinfo.pr_fileflags |= sock_getfasync(fvp);