Date: Sun, 10 Apr 2016 23:17:34 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 207786] gpioiic_callback() dereferences IIC "how" argument incorrectly Message-ID: <bug-207786-8-T7xTuMj8cJ@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-207786-8@https.bugs.freebsd.org/bugzilla/> References: <bug-207786-8@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D207786 --- Comment #3 from commit-hook@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@triularity.org Changes: head/sys/dev/gpio/gpioiic.c --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-207786-8-T7xTuMj8cJ>