X-Git-Url: http://git.onelab.eu/?p=linux-2.6.git;a=blobdiff_plain;f=net%2Fatm%2Fmpoa_proc.c;h=64c676dd550eeb865517387a3f31bebf3e461156;hp=6201756e61da264330ba4194b927baa2e776aae5;hb=9213980e6a70d8473e0ffd4b39ab5b6caaba9ff5;hpb=c449269f45c2cdf53af08c8d0af37472f66539d9 diff --git a/net/atm/mpoa_proc.c b/net/atm/mpoa_proc.c index 6201756e6..64c676dd5 100644 --- a/net/atm/mpoa_proc.c +++ b/net/atm/mpoa_proc.c @@ -30,10 +30,10 @@ extern struct mpoa_client *mpcs; extern struct proc_dir_entry *atm_proc_root; /* from proc.c. */ -static ssize_t proc_mpc_read(struct file *file, char *buff, +static ssize_t proc_mpc_read(struct file *file, char __user *buff, size_t count, loff_t *pos); -static ssize_t proc_mpc_write(struct file *file, const char *buff, +static ssize_t proc_mpc_write(struct file *file, const char __user *buff, size_t nbytes, loff_t *ppos); static int parse_qos(const char *buff, int len); @@ -99,7 +99,7 @@ static const char *egress_state_string(int state){ /* * READING function - called when the /proc/atm/mpoa file is read from. */ -static ssize_t proc_mpc_read(struct file *file, char *buff, +static ssize_t proc_mpc_read(struct file *file, char __user *buff, size_t count, loff_t *pos){ unsigned long page = 0; unsigned char *temp; @@ -165,12 +165,12 @@ static ssize_t proc_mpc_read(struct file *file, char *buff, return length; } -static ssize_t proc_mpc_write(struct file *file, const char *buff, +static ssize_t proc_mpc_write(struct file *file, const char __user *buff, size_t nbytes, loff_t *ppos) { int incoming, error, retval; char *page, c; - const char *tmp; + const char __user *tmp; if (nbytes == 0) return 0; if (nbytes >= PAGE_SIZE) nbytes = PAGE_SIZE-1;