fix compat memory exchange op splitting
authorJan Beulich <jbeulich@suse.com>
Fri, 1 Mar 2013 15:59:49 +0000 (16:59 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 1 Mar 2013 15:59:49 +0000 (16:59 +0100)
commit53decd322157e922cac2988e07da6d39538c8033
treed84275b42c6139f6b08412d08aa2db325aaceb70
parent2f80ac9c0e8fe117b3e9cf71f799b482c6ca312f
fix compat memory exchange op splitting

A shift with a negative count was erroneously used here, yielding
undefined behavior.

Reported-by: Xi Wang <xi@mit.edu>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/common/compat/memory.c