diff options
author | 2011-01-10 10:03:20 +0200 | |
---|---|---|
committer | 2011-01-10 10:03:39 +0200 | |
commit | 0174b0c30a9de25dcb0d3049defcfad0c2947a36 (patch) | |
tree | c7d4430ea5f83b52c9074df6770ad6281735bbc3 /drivers/base/platform.c | |
parent | Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/hch/hfsplus (diff) | |
download | wireguard-linux-0174b0c30a9de25dcb0d3049defcfad0c2947a36.tar.xz wireguard-linux-0174b0c30a9de25dcb0d3049defcfad0c2947a36.zip |
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 <mst@redhat.com>
Diffstat (limited to 'drivers/base/platform.c')
0 files changed, 0 insertions, 0 deletions