diff options
author | Matthew Wilcox (Oracle) <[email protected]> | 2021-12-21 04:44:50 +0000 |
---|---|---|
committer | Dan Williams <[email protected]> | 2021-12-23 14:04:11 -0800 |
commit | 9e05e95ca8dae8de4a7a1645014e1bbd9c8a4dab (patch) | |
tree | 8119f6030c2d07823cec9b9d5d4f6676a9dd9c20 /net/lapb/lapb_timer.c | |
parent | abc14eb1e01286819a671019e78a23542685eee2 (diff) |
iomap: Fix error handling in iomap_zero_iter()
iomap_write_end() does not return a negative errno to indicate an
error, but the number of bytes successfully copied. It cannot return
an error today, so include a debugging assertion like the one in
iomap_unshare_iter().
Fixes: c6f40468657d ("fsdax: decouple zeroing from the iomap buffered I/O code")
Reported-by: Dan Carpenter <[email protected]>
Signed-off-by: Matthew Wilcox (Oracle) <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Dan Williams <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions