lkml.org 
[lkml]   [2005]   [Sep]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH] trivial __user annotations (evdev)
    Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
    ----
    diff -urN RC13-git8-base/drivers/input/evdev.c current/drivers/input/evdev.c
    --- RC13-git8-base/drivers/input/evdev.c 2005-09-08 10:17:39.000000000 -0400
    +++ current/drivers/input/evdev.c 2005-09-08 23:53:33.000000000 -0400
    @@ -509,7 +509,7 @@
    int len = NBITS_COMPAT((max)) * sizeof(compat_long_t); \
    if (len > _IOC_SIZE(cmd)) len = _IOC_SIZE(cmd); \
    for (i = 0; i < len / sizeof(compat_long_t); i++) \
    - if (copy_to_user((compat_long_t*) p + i, \
    + if (copy_to_user((compat_long_t __user *) p + i, \
    (compat_long_t*) (bit) + i + 1 - ((i % 2) << 1), \
    sizeof(compat_long_t))) \
    return -EFAULT; \
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/
    \
     
     \ /
      Last update: 2005-09-09 21:31    [W:0.020 / U:211.808 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site