patch-2_6_7-vs1_9_1_12
[linux-2.6.git] / net / core / iovec.c
index 587f933..89de935 100644 (file)
@@ -157,7 +157,7 @@ int memcpy_fromiovecend(unsigned char *kdata, struct iovec *iov, int offset,
        }
 
        while (len > 0) {
-               u8 *base = iov->iov_base + offset;
+               u8 __user *base = iov->iov_base + offset;
                int copy = min_t(unsigned int, len, iov->iov_len - offset);
 
                offset = 0;
@@ -192,7 +192,7 @@ int csum_partial_copy_fromiovecend(unsigned char *kdata, struct iovec *iov,
        }
 
        while (len > 0) {
-               u8 *base = iov->iov_base + offset;
+               u8 __user *base = iov->iov_base + offset;
                int copy = min_t(unsigned int, len, iov->iov_len - offset);
 
                offset = 0;