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
@ -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…
x
Reference in New Issue
Block a user