Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
anolis: erofs: fix unexpected endless loop when read < 0
ANBZ: torvalds#183 read is ssize_t (signed type) and size is u64. If read < 0, read < size will never be true. Reported-by: Liu Bo <bo.liu@linux.alibaba.com> Reviewed-by: Jeffle Xu <jefflexu@linux.alibaba.com> Reviewed-by: Liu Bo <bo.liu@linux.alibaba.com> Reviewed-by: Joseph Qi <joseph.qi@linux.alibaba.com> Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
- Loading branch information