sync with OpenBSD -current

This commit is contained in:
purplerain 2023-11-30 13:10:15 +00:00
parent ed26f93d8c
commit 9fbd947ba3
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
36 changed files with 208 additions and 157 deletions

View file

@ -589,6 +589,9 @@ static ssize_t amdgpu_debugfs_regs_smc_read(struct file *f, char __user *buf,
ssize_t result = 0;
int r;
if (!adev->smc_rreg)
return -EPERM;
if (size & 0x3 || *pos & 0x3)
return -EINVAL;
@ -645,6 +648,9 @@ static ssize_t amdgpu_debugfs_regs_smc_write(struct file *f, const char __user *
ssize_t result = 0;
int r;
if (!adev->smc_wreg)
return -EPERM;
if (size & 0x3 || *pos & 0x3)
return -EINVAL;