Skip to content
Snippets Groups Projects
Commit 1bd4397e authored by Markus Armbruster's avatar Markus Armbruster Committed by Michael Roth
Browse files

qxl: Fix SPICE_RING_PROD_ITEM(), SPICE_RING_CONS_ITEM() sanity check


The pointer arithmetic there is safe, but ugly.  Coverity grouses
about it.  However, the actual comparison is off by one: <= end
instead of < end.  Fix by rewriting the check in a cleaner way.

Signed-off-by: default avatarMarkus Armbruster <armbru@redhat.com>
Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
(cherry picked from commit bc5f92e5)

Signed-off-by: default avatarMichael Roth <mdroth@linux.vnet.ibm.com>
parent e7667242
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment