Staging: comedi: mark a variable as __user
authorGreg Kroah-Hartman <gregkh@suse.de>
Tue, 4 May 2010 23:00:02 +0000 (16:00 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 11 May 2010 18:36:07 +0000 (11:36 -0700)
This is really a userspace pointer, so mark it as such.

Cc: Ian Abbott <abbotti@mev.co.uk>
Cc: Frank Mori Hess <fmhess@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/comedi/comedi.h

index 45272d8bf9720c72d671efe827ca193878cd6ee7..8e4caaacfc1ca2b25313bdcba9081e82d3a502e3 100644 (file)
                unsigned int __user *chanlist;  /* channel/range list */
                unsigned int chanlist_len;
 
-               short *data;    /* data list, size depends on subd flags */
+               short __user *data;     /* data list, size depends on subd flags */
                unsigned int data_len;
        };