tmem: detect arithmetic overflow in tmh_copy_{from,to}_client()
authorJan Beulich <jbeulich@suse.com>
Tue, 11 Sep 2012 12:17:59 +0000 (14:17 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 11 Sep 2012 12:17:59 +0000 (14:17 +0200)
commit6c777beb83875f7e0cc77ca357025608a56b3560
tree4bc1e833ecfd384de6a067a0bcbd154d8d98fa5d
parent09d39e0108811d6bfe1ab7f819b951ea0b1611d7
tmem: detect arithmetic overflow in tmh_copy_{from,to}_client()

This implies adjusting callers to deal with errors other than -EFAULT
and removing some comments which would otherwise become stale.

Reported-by: Tim Deegan <tim@xen.org>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Dan Magenheimer <dan.magenheimer@oracle.com>
xen/common/tmem.c
xen/common/tmem_xen.c