diff options
| author | Wolfram Sang <wsa+renesas@sang-engineering.com> | 2025-09-06 10:17:35 +0200 |
|---|---|---|
| committer | Wolfram Sang <wsa+renesas@sang-engineering.com> | 2025-09-06 10:17:35 +0200 |
| commit | d035b4baebfc5112b128b66cafd45d2522a9c8f1 (patch) | |
| tree | fc96e96e81597068c9a869c679d18a1a44394164 /arch/riscv/kvm/vcpu_vector.c | |
| parent | Linux 6.17-rc3 (diff) | |
| parent | i2c: rtl9300: remove broken SMBus Quick operation support (diff) | |
| download | linux-d035b4baebfc5112b128b66cafd45d2522a9c8f1.tar.gz linux-d035b4baebfc5112b128b66cafd45d2522a9c8f1.zip | |
Merge tag 'i2c-host-fixes-6.17-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/andi.shyti/linux into i2c/for-current
i2c-host-fixes for v6.17-rc5
- i801: fix device IDs
- in rtl9300:
- fix channel number check in probe
- check data length boundaries in xfer
- drop unsupported SMBus quick operation
Diffstat (limited to 'arch/riscv/kvm/vcpu_vector.c')
| -rw-r--r-- | arch/riscv/kvm/vcpu_vector.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/riscv/kvm/vcpu_vector.c b/arch/riscv/kvm/vcpu_vector.c index a5f88cb717f3..05f3cc2d8e31 100644 --- a/arch/riscv/kvm/vcpu_vector.c +++ b/arch/riscv/kvm/vcpu_vector.c @@ -182,6 +182,8 @@ int kvm_riscv_vcpu_set_reg_vector(struct kvm_vcpu *vcpu, struct kvm_cpu_context *cntx = &vcpu->arch.guest_context; unsigned long reg_val; + if (reg_size != sizeof(reg_val)) + return -EINVAL; if (copy_from_user(®_val, uaddr, reg_size)) return -EFAULT; if (reg_val != cntx->vector.vlenb) |
