]> git.proxmox.com Git - mirror_qemu.git/commit
misc: zynq-xadc: Fix off-by-one
authorPeter Crosthwaite <crosthwaitepeter@gmail.com>
Thu, 21 Jan 2016 14:15:04 +0000 (14:15 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 21 Jan 2016 14:15:04 +0000 (14:15 +0000)
commit4a94fc9bf2dac5965acb8e264d55a356737a2aa6
tree30614e2da3c743f9fe406f61d3086f2410e7facc
parenta4b26335c8c2b513ee9383837704f264e0b8d83f
misc: zynq-xadc: Fix off-by-one

This bounds check was off-by-one. Fix.

Reported-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Peter Crosthwaite <crosthwaite.peter@gmail.com>
Message-id: 1453101737-11255-1-git-send-email-crosthwaite.peter@gmail.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/misc/zynq-xadc.c