Skip to content
Commit de291b59 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Dan Williams
Browse files

iomap: turn the byte variable in iomap_zero_iter into a ssize_t



@bytes also holds the return value from iomap_write_end, which can
contain a negative error value.  As @bytes is always less than the page
size even the signed type can hold the entire possible range.

Fixes: c6f40468657d ("fsdax: decouple zeroing from the iomap buffered I/O code")
Reported-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20211208091203.2927754-1-hch@lst.de
Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
parent b80892ca
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment