OSDN Git Service

net: make iov_to_buf take right size argument in nc_sendv_compat()
authorYang Hongyang <yanghy@cn.fujitsu.com>
Tue, 20 Oct 2015 01:51:25 +0000 (09:51 +0800)
committerJason Wang <jasowang@redhat.com>
Tue, 27 Oct 2015 02:30:40 +0000 (10:30 +0800)
commitedc981443d5bd23e01639c2fbba4fbc2dc30204f
tree962fb402b6c57523d2d494079a0c3a60cd1cc5c2
parent5320c2caf43cc76748a1ffa0fdcaa9eb501d3fcd
net: make iov_to_buf take right size argument in nc_sendv_compat()

We want "buf, sizeof(buf)" here.  sizeof(buffer) is the size of a
pointer, which is wrong.
Thanks to Paolo for pointing it out.

Signed-off-by: Yang Hongyang <yanghy@cn.fujitsu.com>
Cc: Jason Wang <jasowang@redhat.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
net/net.c