git: 9a46464ad64a - releng/13.1 - lindebugfs: The Linux file operations use negative return values in the kernel.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 17 Mar 2022 12:28:15 UTC
The branch releng/13.1 has been updated by hselasky: URL: https://cgit.FreeBSD.org/src/commit/?id=9a46464ad64a92d57e099ccfba069b00d30f9727 commit 9a46464ad64a92d57e099ccfba069b00d30f9727 Author: Hans Petter Selasky <hselasky@FreeBSD.org> AuthorDate: 2022-03-11 16:37:46 +0000 Commit: Hans Petter Selasky <hselasky@FreeBSD.org> CommitDate: 2022-03-17 12:26:23 +0000 lindebugfs: The Linux file operations use negative return values in the kernel. Fix sign. Sponsored by: NVIDIA Networking Approved by: re (gjb) (cherry picked from commit 68ec2949ad3411aa8a684dfca2cae90cbe202675) (cherry picked from commit a16772a8111095a0358be9c046d321988f2696c2) --- sys/compat/lindebugfs/lindebugfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/compat/lindebugfs/lindebugfs.c b/sys/compat/lindebugfs/lindebugfs.c index 9507cded9ebd..cbfdfbbce876 100644 --- a/sys/compat/lindebugfs/lindebugfs.c +++ b/sys/compat/lindebugfs/lindebugfs.c @@ -152,12 +152,12 @@ debugfs_fill(PFS_FILL_ARGS) if (d->dm_fops->read) rc = d->dm_fops->read(&lf, NULL, len, &off); else - rc = ENODEV; + rc = -ENODEV; } else { if (d->dm_fops->write) rc = d->dm_fops->write(&lf, buf, len, &off); else - rc = ENODEV; + rc = -ENODEV; } if (d->dm_fops->release) d->dm_fops->release(&vn, &lf);