git: 17ed300f0833 - stable/13 - wmistat: don't restrict reading to the pid that opened the fd.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 08 Sep 2023 10:13:30 UTC
The branch stable/13 has been updated by des:
URL: https://cgit.FreeBSD.org/src/commit/?id=17ed300f0833c8e6dd6bce95748f5dbe33050a3c
commit 17ed300f0833c8e6dd6bce95748f5dbe33050a3c
Author: Dag-Erling Smørgrav <des@FreeBSD.org>
AuthorDate: 2023-08-29 17:23:16 +0000
Commit: Dag-Erling Smørgrav <des@FreeBSD.org>
CommitDate: 2023-09-08 10:09:22 +0000
wmistat: don't restrict reading to the pid that opened the fd.
PR: 273405
MFC after: 1 week
Reviewed by: emaste
Differential Revision: https://reviews.freebsd.org/D41621
(cherry picked from commit 28977cb9bc15a7f1fb7d28e14cd03f8dafd4e155)
---
sys/dev/acpi_support/acpi_wmi.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/sys/dev/acpi_support/acpi_wmi.c b/sys/dev/acpi_support/acpi_wmi.c
index 59872d632c22..2bdde3f21e5c 100644
--- a/sys/dev/acpi_support/acpi_wmi.c
+++ b/sys/dev/acpi_support/acpi_wmi.c
@@ -977,8 +977,7 @@ acpi_wmi_wmistat_read(struct cdev *dev, struct uio *buf, int flag)
sc = dev->si_drv1;
ACPI_SERIAL_BEGIN(acpi_wmi);
- if (sc->wmistat_open_pid != buf->uio_td->td_proc->p_pid ||
- sc->wmistat_bufptr == -1) {
+ if (sc->wmistat_bufptr == -1) {
ret = EBADF;
}
else {