]> Zhao Yanbai Git Server - minix.git/commitdiff
Fix bios_wini using wrong size for vector (Bug#280, reported by John Peace)
authorDavid van Moolenbroek <david@minix3.org>
Thu, 1 Oct 2009 16:59:04 +0000 (16:59 +0000)
committerDavid van Moolenbroek <david@minix3.org>
Thu, 1 Oct 2009 16:59:04 +0000 (16:59 +0000)
drivers/bios_wini/bios_wini.c

index 97c6c016e2c42270dd3805f05785ee92b1e2053c..e5662a16b54bfb264e61db7dbebf907052bbc6ba 100644 (file)
@@ -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);