HomeFreeBSD

Fix memory corruption bug introduced in r325310

Description

Fix memory corruption bug introduced in r325310

The bug occurred when a bounce buffer was used and the requested read
size was greater than the size of the bounce buffer. This commit also
rewrites the read logic so that it is easier to systematically verify
all alignment and size cases.

Reviewed by: allanjude, tsoome
MFC after: 3 months
Differential Revision: https://reviews.freebsd.org/D19140

Details

Provenance
pkelseyAuthored on Feb 17 2019, 3:35 AM
Parents
rGe1d8f44fd41f: Add sysctl for setting battery charging current.
Branches
Unknown
Tags
Unknown

Event Timeline