mirror of
https://github.com/ceph/ceph
synced 2024-12-17 17:05:42 +00:00
Merge pull request #16803 from dmick/master
common/buffer: off-by-one error in max iov length blocking Reviewed-by: Greg Farnum <gfarnum@redhat.com>
This commit is contained in:
commit
62a2e420bf
@ -2382,7 +2382,7 @@ int buffer::list::write_fd(int fd) const
|
||||
}
|
||||
++p;
|
||||
|
||||
if (iovlen == IOV_MAX-1 ||
|
||||
if (iovlen == IOV_MAX ||
|
||||
p == _buffers.end()) {
|
||||
iovec *start = iov;
|
||||
int num = iovlen;
|
||||
|
Loading…
Reference in New Issue
Block a user