diff options
author | Paul Mackerras <paulus@samba.org> | 2012-10-15 03:18:37 +0200 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2012-10-30 10:54:58 +0100 |
commit | 9f8c8c7812976fbfaf4bb30aaf8f6b001864f20a (patch) | |
tree | d2b200398f27d85c4b4b9e2fff24a20f8d5334a9 /arch/s390/kernel/sys_s390.c | |
parent | KVM: PPC: Book3S HV: Fix accounting of stolen time (diff) | |
download | linux-9f8c8c7812976fbfaf4bb30aaf8f6b001864f20a.tar.xz linux-9f8c8c7812976fbfaf4bb30aaf8f6b001864f20a.zip |
KVM: PPC: Book3S HV: Allow DTL to be set to address 0, length 0
Commit 55b665b026 ("KVM: PPC: Book3S HV: Provide a way for userspace
to get/set per-vCPU areas") includes a check on the length of the
dispatch trace log (DTL) to make sure the buffer is at least one entry
long. This is appropriate when registering a buffer, but the
interface also allows for any existing buffer to be unregistered by
specifying a zero address. In this case the length check is not
appropriate. This makes the check conditional on the address being
non-zero.
Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'arch/s390/kernel/sys_s390.c')
0 files changed, 0 insertions, 0 deletions