diff options
author | Ding Tianhong <dingtianhong@huawei.com> | 2017-04-29 02:38:48 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-05-20 12:28:38 (GMT) |
commit | 377178321690105cd4d42b33486881843ea6f8e8 (patch) | |
tree | f0089d172dd41207859eb11e3e9b83645bfdea75 /drivers/infiniband/core | |
parent | 9f43f70dcc56ac294aeb8c0b29766a7a1cb1aec0 (diff) | |
download | linux-377178321690105cd4d42b33486881843ea6f8e8.tar.xz |
iov_iter: don't revert iov buffer if csum error
commit a6a5993243550b09f620941dea741b7421fdf79c upstream.
The patch 327868212381 (make skb_copy_datagram_msg() et.al. preserve
->msg_iter on error) will revert the iov buffer if copy to iter
failed, but it didn't copy any datagram if the skb_checksum_complete
error, so no need to revert any data at this place.
v2: Sabrina notice that return -EFAULT when checksum error is not correct
here, it would confuse the caller about the return value, so fix it.
Fixes: 327868212381 ("make skb_copy_datagram_msg() et.al. preserve->msg_iter on error")
Signed-off-by: Ding Tianhong <dingtianhong@huawei.com>
Acked-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/infiniband/core')
0 files changed, 0 insertions, 0 deletions