IOBuffer::SetVecs(): fUser was initialized incorrectly, if the vecs referred
to physical memory whose address would accidentally satisfy the IS_USER_ADDRESS() check. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34136 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
778aa3bf62
commit
1748a3cb45
@ -120,8 +120,8 @@ IOBuffer::SetVecs(size_t firstVecOffset, const iovec* vecs, uint32 count,
|
|||||||
|
|
||||||
fVecCount = count;
|
fVecCount = count;
|
||||||
fLength = length;
|
fLength = length;
|
||||||
fUser = IS_USER_ADDRESS(vecs[0].iov_base);
|
|
||||||
fPhysical = (flags & B_PHYSICAL_IO_REQUEST) != 0;
|
fPhysical = (flags & B_PHYSICAL_IO_REQUEST) != 0;
|
||||||
|
fUser = !fPhysical && IS_USER_ADDRESS(vecs[0].iov_base);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user