-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix niova_io_iovs_advance() bug when iovs are completely used
Calling niova_io_iovs_advance() with parameters that completely 'use' the entire iov set caused the function to assert on an internal check that verified the ensuing index was < the number of iovs. The approach taken here is to detect the condition and return the error, -EXFULL, rather than modify the last iov such that its base pointer would be out of bounds and its length would be 0.
- Loading branch information
Showing
2 changed files
with
19 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters