git: deb027e9ed66 - stable/12 - procstat_getfiles_sysctl: do not require non-null ki_fd
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 09 Dec 2021 00:33:41 UTC
The branch stable/12 has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=deb027e9ed66d2cc4aa1cb55b7e0c1847b370c83
commit deb027e9ed66d2cc4aa1cb55b7e0c1847b370c83
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2021-12-02 18:03:01 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2021-12-09 00:32:47 +0000
procstat_getfiles_sysctl: do not require non-null ki_fd
PR: 260174
(cherry picked from commit 7a9423d6f360e3758ca67fbb25d309140ea93670)
---
lib/libprocstat/libprocstat.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/lib/libprocstat/libprocstat.c b/lib/libprocstat/libprocstat.c
index 6f74d5876b42..ba8767c61508 100644
--- a/lib/libprocstat/libprocstat.c
+++ b/lib/libprocstat/libprocstat.c
@@ -832,8 +832,6 @@ procstat_getfiles_sysctl(struct procstat *procstat, struct kinfo_proc *kp,
cap_rights_t cap_rights;
assert(kp);
- if (kp->ki_fd == NULL)
- return (NULL);
switch (procstat->type) {
case PROCSTAT_SYSCTL:
files = kinfo_getfile(kp->ki_pid, &cnt);