From: Paul Mackerras Date: Mon, 15 Oct 2012 01:18:37 +0000 (+0000) Subject: KVM: PPC: Book3S HV: Allow DTL to be set to address 0, length 0 X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~27^2~42^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f8c8c7812976fbfaf4bb30aaf8f6b001864f20a;p=pandora-kernel.git 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 Signed-off-by: Alexander Graf --- Reading git-diff-tree failed