]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb2a63d0920c2f9b3d44a89a0c12abf028f4f130a
tree761ccdf0279f31f298e070211ea3bd98c3c0f0da
parent5fd7b01a8671baed9b6e6c2b5785013cd3a9daef
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