Colin Ian King 95110ac88d xen/pvcalls: fix unsigned less than zero error check
The check on bedata->ref is never true because ref is an unsigned
integer. Fix this by assigning signed int ret to the return of the
call to gnttab_claim_grant_reference so the -ve return can be checked.

Detected by CoverityScan, CID#1460358 ("Unsigned compared against 0")

Fixes: 219681909913 ("xen/pvcalls: connect to the backend")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
2017-11-03 11:38:27 -04:00
..
2017-09-07 10:24:21 -07:00
2015-12-21 14:40:55 +00:00
2017-08-15 10:32:49 -04:00
2017-05-02 12:06:50 +02:00
2015-12-21 14:40:55 +00:00
2011-12-16 13:29:31 -05:00
2017-06-05 16:59:12 +02:00