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>
size += really_read;
goto short_read;
}
- actual = size;
+
if (actual > align_size)
actual = align_size;
actual -= offset;