]>
Commit | Line | Data |
---|---|---|
36e97dec GKH |
1 | From 575c9ed7798218dc923f319c0d78f0c25ca506b9 Mon Sep 17 00:00:00 2001 |
2 | From: Alan Cox <alan@linux.intel.com> | |
3 | Date: Tue, 27 Oct 2009 15:35:55 +0000 | |
4 | Subject: ray_cs: Fix copy_from_user handling | |
5 | ||
6 | From: Alan Cox <alan@linux.intel.com> | |
7 | ||
8 | commit 575c9ed7798218dc923f319c0d78f0c25ca506b9 upstream. | |
9 | ||
10 | I've not touched the other stuff here but the word "locking" comes to mind. | |
11 | ||
12 | Signed-off-by: Alan Cox <alan@linux.intel.com> | |
13 | Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> | |
14 | Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> | |
15 | ||
16 | --- | |
17 | drivers/net/wireless/ray_cs.c | 2 +- | |
18 | 1 file changed, 1 insertion(+), 1 deletion(-) | |
19 | ||
20 | --- a/drivers/net/wireless/ray_cs.c | |
21 | +++ b/drivers/net/wireless/ray_cs.c | |
22 | @@ -2878,7 +2878,7 @@ static int write_essid(struct file *file | |
23 | unsigned long count, void *data) | |
24 | { | |
25 | static char proc_essid[33]; | |
26 | - int len = count; | |
27 | + unsigned int len = count; | |
28 | ||
29 | if (len > 32) | |
30 | len = 32; |