aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md
diff options
context:
space:
mode:
authorTakuya Yoshikawa <yoshikawa.takuya@oss.ntt.co.jp>2010-05-27 19:01:58 +0900
committerMichael S. Tsirkin <mst@redhat.com>2010-05-27 13:55:13 +0300
commitd3553a52490dcac54f45083f8fa018e26c22e947 (patch)
tree7a9d272840b3e7d106d30b93d71a0c36a3c30790 /drivers/md
parent7ad9c9d27048547e96e4e3a13b5780ec6f81bb9f (diff)
downloadkernel_samsung_espresso10-d3553a52490dcac54f45083f8fa018e26c22e947.zip
kernel_samsung_espresso10-d3553a52490dcac54f45083f8fa018e26c22e947.tar.gz
kernel_samsung_espresso10-d3553a52490dcac54f45083f8fa018e26c22e947.tar.bz2
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>
Diffstat (limited to 'drivers/md')
0 files changed, 0 insertions, 0 deletions