diff options
author | Robert Mustacchi <rm@joyent.com> | 2011-06-14 11:51:45 -0700 |
---|---|---|
committer | Robert Mustacchi <rm@joyent.com> | 2011-06-14 11:51:45 -0700 |
commit | c5def9b5aa313070f8f19c2f0fb78838a2ed2867 (patch) | |
tree | 14866d6a053c6c1b0d4f52185c38311a6ad1758d /kvm.c | |
parent | 405ba1943a8a3f331b39c8ca59d2f0e9571dd56a (diff) | |
download | illumos-kvm-c5def9b5aa313070f8f19c2f0fb78838a2ed2867.tar.gz |
HVM-370 Cleanup SET_TSS ioctl
Diffstat (limited to 'kvm.c')
-rw-r--r-- | kvm.c | 11 |
1 files changed, 2 insertions, 9 deletions
@@ -2310,20 +2310,13 @@ kvm_ioctl(dev_t dev, int cmd, intptr_t arg, int md, cred_t *cr, int *rv) } case KVM_SET_TSS_ADDR: { - struct kvm_tss kvm_tss; - struct kvm *kvmp; - if (copyin(argp, &kvm_tss, sizeof (kvm_tss)) != 0) { - rval = EFAULT; - break; - } - - if ((kvmp = ksp->kds_kvmp) == NULL) { + if (ksp->kds_kvmp == NULL) { rval = EINVAL; break; } - rval = kvm_vm_ioctl_set_tss_addr(kvmp, (caddr_t)kvm_tss.addr); + rval = kvm_vm_ioctl_set_tss_addr(ksp->kds_kvmp, arg); break; } |