From: Michael S. Tsirkin Date: Mon, 10 Jan 2011 08:03:20 +0000 (+0200) Subject: vhost: fix signed/unsigned comparison X-Git-Tag: v2.6.38-rc1~50^2~9^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0174b0c30a9de25dcb0d3049defcfad0c2947a36;p=pandora-kernel.git vhost: fix signed/unsigned comparison To detect that a sequence number is done, we are doing math on unsigned integers so the result is unsigned too. Not what was intended for the <= comparison. The result is user stuck forever in flush call. Convert to int to fix this. Further, get rid of ({}) to make code clearer. Signed-off-by: Michael S. Tsirkin --- Reading git-diff-tree failed