From: Ben Gras Date: Wed, 17 Oct 2007 10:50:18 +0000 (+0000) Subject: Fixed a glitch introduced in safe i/o conversion. X-Git-Tag: v3.1.4~317 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/dnssec-revoke.html?a=commitdiff_plain;h=23f6e478dff7821b41ce097bbd6ccb6798d3ba29;p=minix.git Fixed a glitch introduced in safe i/o conversion. --- diff --git a/drivers/dpeth/3c509.c b/drivers/dpeth/3c509.c index 14c89a526..ffa89ff08 100644 --- a/drivers/dpeth/3c509.c +++ b/drivers/dpeth/3c509.c @@ -130,10 +130,10 @@ static void el3_write_fifo(dpeth_t * dep, int pktsize) bytes = iovp->iod_iovec[ix].iov_size; /* Size of buffer */ if (bytes > pktsize) bytes = pktsize; /* Writes from user buffer to Tx FIFO */ - r= sys_safe_insb(dep->de_data_port, iovp->iod_proc_nr, + r= sys_safe_outsb(dep->de_data_port, iovp->iod_proc_nr, iovp->iod_iovec[ix].iov_grant, 0, bytes); if (r != OK) - panic(__FILE__, "el3_write_fifo: sys_safe_insb failed", r); + panic(__FILE__, "el3_write_fifo: sys_safe_outsb failed", r); if (++ix >= IOVEC_NR) { /* Next buffer of IO vector */ dp_next_iovec(iovp);