]> git.ipfire.org Git - thirdparty/qemu.git/commit
memory: fix off-by-one error in memory_region_notify_one()
authorMaxime Coquelin <maxime.coquelin@redhat.com>
Tue, 10 Oct 2017 09:42:47 +0000 (11:42 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 5 Dec 2017 04:42:41 +0000 (22:42 -0600)
commitd765c5e5779fe25f8dcb7f65c9a27a7b5a77941f
tree6a7181e1a0cab443f37288a731344c98cdf8bd62
parentae13e2cfa85858d58a4f1c158bb47a395d983c0c
memory: fix off-by-one error in memory_region_notify_one()

This patch fixes an off-by-one error that could lead to the
notifyee to receive notifications for ranges it is not
registered to.

The bug has been spotted by code review.

Fixes: bd2bfa4c52e5 ("memory: introduce memory_region_notify_one()")
Cc: qemu-stable@nongnu.org
Cc: Peter Xu <peterx@redhat.com>
Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Message-Id: <20171010094247.10173-4-maxime.coquelin@redhat.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit b021d1c04452276f4926eed2d104ccbd1037a6e1)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
memory.c