From: David van Moolenbroek Date: Thu, 1 Oct 2009 16:59:04 +0000 (+0000) Subject: Fix bios_wini using wrong size for vector (Bug#280, reported by John Peace) X-Git-Tag: v3.1.5~46 X-Git-Url: http://zhaoyanbai.com/repos/?a=commitdiff_plain;h=6168bcefa6e68cb215db630524cd4e55ba46ef76;p=minix.git Fix bios_wini using wrong size for vector (Bug#280, reported by John Peace) --- diff --git a/drivers/bios_wini/bios_wini.c b/drivers/bios_wini/bios_wini.c index 97c6c016e..e5662a16b 100644 --- a/drivers/bios_wini/bios_wini.c +++ b/drivers/bios_wini/bios_wini.c @@ -218,7 +218,7 @@ int safe; /* use safecopies? */ /* Copy from user space to the DMA buffer. */ count = 0; for (iop = iov; count < nbytes; iop++) { - chunk = iov->iov_size; + chunk = iop->iov_size; if (count + chunk > nbytes) chunk = nbytes - count; assert(chunk <= rem_buf_size); @@ -287,7 +287,7 @@ int safe; /* use safecopies? */ /* Copy from the DMA buffer to user space. */ count = 0; for (iop = iov; count < nbytes; iop++) { - chunk = iov->iov_size; + chunk = iop->iov_size; if (count + chunk > nbytes) chunk = nbytes - count; assert(chunk <= rem_buf_size);