Whamcloud - gitweb
LU-15590 libext2fs: fix direct I/O read 01/46601/2
authorJohn L. Hammond <jhammond@whamcloud.com>
Wed, 23 Feb 2022 22:27:38 +0000 (16:27 -0600)
committerAndreas Dilger <adilger@whamcloud.com>
Thu, 24 Feb 2022 20:11:43 +0000 (20:11 +0000)
commit980a75706e0ea08efc3138727fde0bf9440bee1c
tree11a34a1d5dfc291993b8386f83742f44c6ec49c8
parentb15a0ad2fb8703c87dedcf0b2af26e3e750bcb76
LU-15590 libext2fs: fix direct I/O read

In the direct I/O bounce buffer case of raw_read_blk(), don't clobber
"actual" with "size" after reading.

Fixes: d557b965 libext2fs: fix potential races in unix_io
Signed-off-by: John L. Hammond <jhammond@whamcloud.com>
Change-Id: Ice42596be8e9db84fd49cbea25d3cd0fdf76589a
Reviewed-on: https://review.whamcloud.com/46601
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lib/ext2fs/unix_io.c