[Bug 207786] gpioiic_callback() dereferences IIC "how" argument incorrectly
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sun Apr 10 23:17:34 UTC 2016
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=207786
--- Comment #3 from commit-hook at freebsd.org ---
A commit references this bug:
Author: gonzo
Date: Sun Apr 10 23:17:06 UTC 2016
New revision: 297794
URL: https://svnweb.freebsd.org/changeset/base/297794
Log:
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 at triularity.org
Changes:
head/sys/dev/gpio/gpioiic.c
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list