]> git.proxmox.com Git - mirror_zfs.git/commit
Fix uioskip crash when skip to end
authorChunwei Chen <tuxoko@gmail.com>
Tue, 29 Sep 2015 07:02:31 +0000 (00:02 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 29 Sep 2015 17:06:58 +0000 (10:06 -0700)
commit45838e3a414a7a1a5fb49dc528dee1d22449599b
treee90de972b6d8203693e6c64145408c993e7bf1c5
parentb815ec32b3ba04ad7307ca8945a865eec0ec766b
Fix uioskip crash when skip to end

When doing uioskip to skip an iovec to the very end, the current loop
condition will falsely check pass the end of iovec. We fix this checking
uio_iovcnt first.

Signed-off-by: Chunwei Chen <tuxoko@gmail.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #3806
Closes #3850
module/zcommon/zfs_uio.c