linux/drivers/vhost
Takuya Yoshikawa d3553a5249 vhost-net: fix to check the return value of copy_to/from_user() correctly
copy_to/from_user() returns the number of bytes that could not be copied.

So we need to check if it is not zero, and in that case, we should return
the error number -EFAULT rather than directly return the return value from
copy_to/from_user().

Signed-off-by: Takuya Yoshikawa <yoshikawa.takuya@oss.ntt.co.jp>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2010-05-27 13:55:13 +03:00
..
Kconfig net/macvtap: add vhost support 2010-02-18 14:08:38 -08:00
Makefile vhost_net: a kernel-level virtio server 2010-01-15 01:43:29 -08:00
net.c vhost-net: fix to check the return value of copy_to/from_user() correctly 2010-05-27 13:55:13 +03:00
vhost.c vhost: fix to check the return value of copy_to/from_user() correctly 2010-05-27 13:54:59 +03:00
vhost.h vhost_net: a kernel-level virtio server 2010-01-15 01:43:29 -08:00