From 6168bcefa6e68cb215db630524cd4e55ba46ef76 Mon Sep 17 00:00:00 2001 From: David van Moolenbroek Date: Thu, 1 Oct 2009 16:59:04 +0000 Subject: [PATCH] Fix bios_wini using wrong size for vector (Bug#280, reported by John Peace) --- drivers/bios_wini/bios_wini.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.44.0