mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 01:30:30 -04:00
lindebugfs: The Linux file operations use negative return values in the kernel.
Fix sign. MFC after: 1 week Sponsored by: NVIDIA Networking
This commit is contained in:
parent
88a29d89eb
commit
68ec2949ad
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue