Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lib: scatterlist: Fix to support no mapped sg
In function sg_split, the second sg_calculate_split will return -EINVAL when in_mapped_nents is 0. Indeed there is no need to do second sg_calculate_split and sg_split_mapped when in_mapped_nents is 0, as in_mapped_nents indicates no mapped entry in original sgl. Signed-off-by: Zhou Wang <[email protected]> Acked-by: Robert Jarzmik <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
- Loading branch information