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:
Hans Petter Selasky 2022-03-11 17:37:46 +01:00
parent 88a29d89eb
commit 68ec2949ad

View File

@ -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);