HomeFreeBSD

Fix IIC "how" argument dereferencing on big-endian platforms

Description

Fix IIC "how" argument dereferencing on big-endian platforms

"how" argument is passed as value of int* pointer to callback
function but dereferenced as char* so only one byte taken into
into account. On little-endian systems it happens to work because
first byte is LSB that contains actual value, on big-endian it's
MSB and in this case it's always equal zero

PR: 207786
Submitted by: chadf@triularity.org

Details

Provenance
gonzoAuthored on Apr 10 2016, 11:17 PM
Parents
rG74b8d63dcc17: Cleanup unnecessary semicolons from the kernel.
Branches
Unknown
Tags
Unknown

Event Timeline