lowmemd: fix comparison in cleanup
authorNorbert Manthey <nmanthey@amazon.com>
Fri, 17 Feb 2017 10:47:46 +0000 (11:47 +0100)
committerWei Liu <wei.liu2@citrix.com>
Mon, 20 Feb 2017 16:55:24 +0000 (16:55 +0000)
commit2f5af2c962c05b789bdd65b46c74711e903f86d0
tree905d69f687c0b8cca1570c8955e8e3cef1a8c00e
parent78da0c2a7a9c621ba64e515528e11e5f28f15050
lowmemd: fix comparison in cleanup

The variable virq_port of type uint32_t was compared to being greater than
-1. This check always results in false for unsigned data types, resulting
in never cleaning up the memory. Furthermore, the initialization with a
negative variable for an unsigned type has been fixed.

Signed-off-by: Norbert Manthey <nmanthey@amazon.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/misc/xen-lowmemd.c