]> git.baikalelectronics.ru Git - kernel.git/commit
vhost: drop hard-coded num_buffers size
authorMichael S. Tsirkin <mst@redhat.com>
Wed, 25 Feb 2015 14:20:01 +0000 (15:20 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Feb 2015 20:53:44 +0000 (15:53 -0500)
commit352ed3e061f79c2e9aefb3b224372457fe85f156
treeeeda1dacebc689cf8e39801af7218f1c5a10fb29
parent84d2ada6e752f751c0417197e273007cb4ba8188
vhost: drop hard-coded num_buffers size

The 2 that we use for copy_to_iter comes from sizeof(u16),
it used to be that way before the iov iter update.
Fix it up, making it obvious the size of stack access
is right.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/vhost/net.c