vhost: fix mergeable bufs on BE hosts
authorMichael S. Tsirkin <mst@redhat.com>
Wed, 24 Oct 2012 18:37:51 +0000 (20:37 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 25 Oct 2012 03:19:30 +0000 (23:19 -0400)
commit910a578f7e9400a78a3b13aba0b4d2df16a2cb05
tree761ccdf0279f31f298e070211ea3bd98c3c0f0da
parent2b9c128e9580e79db48bd3aacb2b4873544e01e8
vhost: fix mergeable bufs on BE hosts

We copy head count to a 16 bit field, this works by chance on LE but on
BE guest gets 0. Fix it up.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Tested-by: Alexander Graf <agraf@suse.de>
Cc: stable@vger.kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/vhost/net.c