summaryrefslogtreecommitdiffstats
path: root/mm/filemap.c
diff options
context:
space:
mode:
authorDing Tianhong2017-04-29 04:38:48 +0200
committerAl Viro2017-05-01 20:49:53 +0200
commita6a5993243550b09f620941dea741b7421fdf79c (patch)
tree6fe5747d0ba55ff5d431d850e172ef1bc43b3336 /mm/filemap.c
parentgeneric_file_read_iter(): make use of iov_iter_revert() (diff)
downloadkernel-qcow2-linux-a6a5993243550b09f620941dea741b7421fdf79c.tar.gz
kernel-qcow2-linux-a6a5993243550b09f620941dea741b7421fdf79c.tar.xz
kernel-qcow2-linux-a6a5993243550b09f620941dea741b7421fdf79c.zip
iov_iter: don't revert iov buffer if csum error
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") Cc: stable@vger.kernel.org # v4.11 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>
Diffstat (limited to 'mm/filemap.c')
0 files changed, 0 insertions, 0 deletions