lkml.org 
[lkml]   [2009]   [May]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 17/27] add generic lib/checksum.c
    On Tue, Mar 31, 2009 at 03:30:31PM +0200, Arnd Bergmann wrote:
    > +/*
    > + * copy from fs while checksumming, otherwise like csum_partial
    > + */
    > +__wsum
    > +csum_partial_copy_from_user(const void __user *src, void *dst, int len,
    > + __wsum sum, int *csum_err)
    > +{
    > + if (csum_err)
    > + *csum_err = 0;
    > + memcpy(dst, src, len);

    Since when has 'memcpy' been valid from user addresses?

    --
    Russell King
    Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/
    maintainer of:


    \
     
     \ /
      Last update: 2009-05-01 11:23    [W:0.024 / U:0.124 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site