]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Remove iov_iter_advance() from iter_read
authorBrian Behlendorf <behlendorf1@llnl.gov>
Sun, 20 Dec 2020 17:49:29 +0000 (09:49 -0800)
committerGitHub <noreply@github.com>
Sun, 20 Dec 2020 17:49:29 +0000 (09:49 -0800)
commit9ac535e66277a8d874434e1e81da8adb266d9692
treec31a0fd97f300932842bb899b5ac5444f32b5c25
parent49c482fde366e0cd2d2c164c8339669ba88fe108
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 <behlendorf1@llnl.gov>
Closes #11375
Closes #11378
module/os/linux/zfs/zpl_file.c