Page MenuHomeFreeBSD

D5132.1775521345.diff
No OneTemporary

Size
772 B
Referenced Files
None
Subscribers
None

D5132.1775521345.diff

Index: sys/dev/iicbus/iic.c
===================================================================
--- sys/dev/iicbus/iic.c
+++ sys/dev/iicbus/iic.c
@@ -293,7 +293,8 @@
struct iic_msg *buf, *m;
void **usrbufs;
device_t iicdev, parent;
- int error, i;
+ int error;
+ uint32_t i;
iicdev = priv->sc->sc_dev;
parent = device_get_parent(iicdev);
Index: sys/dev/tdfx/tdfx_pci.c
===================================================================
--- sys/dev/tdfx/tdfx_pci.c
+++ sys/dev/tdfx/tdfx_pci.c
@@ -707,7 +707,8 @@
}
/* Write the data to the intended port */
- copyin(piod->value, &ret_byte, sizeof(u_int8_t));
+ if (copyin(piod->value, &ret_byte, sizeof(u_int8_t)) != 0)
+ return -EFAULT;
workport = piod->port;
outb(workport, ret_byte);
return 0;

File Metadata

Mime Type
text/plain
Expires
Tue, Apr 7, 12:22 AM (15 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28282782
Default Alt Text
D5132.1775521345.diff (772 B)

Event Timeline