commit | bc5f92e5db6f303e73387278e32f8669f0abf0e5 | [log] [tgz] |
---|---|---|
author | Markus Armbruster <armbru@pond.sub.org> | Thu Jan 10 14:24:49 2013 +0100 |
committer | Gerd Hoffmann <kraxel@redhat.com> | Mon Jan 14 08:59:38 2013 +0100 |
tree | 006ad6ca4e2bf25ce973c765e9198669faaf8671 | |
parent | 63fb2590839162afdf14d7c0ee02d460766c0956 [diff] |
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: Markus Armbruster <armbru@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>