Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove iov_iter_advance() from iter_read
There's no need to call iov_iter_advance() in zpl_iter_read(). This was preserved from the previous code where it wasn't needed but also didn't cause any problems. Now that the iter functions also handle pipes that's no longer the case. When fully reading a pipe buffer iov_iter_advance() may results in the pipe buf release function being called which will not be registered resulting in a NULL dereference. Signed-off-by: Brian Behlendorf <[email protected]> Closes openzfs#11375 Closes openzfs#11378
- Loading branch information