FreeBSD Bugzilla – Attachment 167825 Details for
Bug 207786
gpioiic_callback() dereferences IIC "how" argument incorrectly
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch file for sys/dev/gpio/gpioiic.c
gpioiic.c.patch (text/plain), 487 bytes, created by
chadf
on 2016-03-08 02:35:43 UTC
(
hide
)
Description:
Patch file for sys/dev/gpio/gpioiic.c
Filename:
MIME Type:
Creator:
chadf
Created:
2016-03-08 02:35:43 UTC
Size:
487 bytes
patch
obsolete
>Index: /usr/src/FreeBSD-current/src/sys/dev/gpio/gpioiic.c >=================================================================== >--- /usr/src/FreeBSD-current/src/sys/dev/gpio/gpioiic.c (revision 296448) >+++ /usr/src/FreeBSD-current/src/sys/dev/gpio/gpioiic.c (working copy) >@@ -157,7 +157,7 @@ > int error, how; > > how = GPIOBUS_DONTWAIT; >- if (data != NULL && (int)*data == IIC_WAIT) >+ if (data != NULL && *(int *)data == IIC_WAIT) > how = GPIOBUS_WAIT; > error = 0; > switch (index) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 207786
: 167825 |
169012