]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ray_cs: Fix copy_from_user handling
authorAlan Cox <alan@linux.intel.com>
Tue, 27 Oct 2009 15:35:55 +0000 (15:35 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 10 Nov 2009 00:22:09 +0000 (16:22 -0800)
commit 575c9ed7798218dc923f319c0d78f0c25ca506b9 upstream.

I've not touched the other stuff here but the word "locking" comes to mind.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/wireless/ray_cs.c

index 698b11b1cadbb28fd09155f767063d30dc9c3e71..8c67a488f83bac94eb186b170b537527ce936ffd 100644 (file)
@@ -2878,7 +2878,7 @@ static int write_essid(struct file *file, const char __user *buffer,
                       unsigned long count, void *data)
 {
        static char proc_essid[33];
-       int len = count;
+       unsigned int len = count;
 
        if (len > 32)
                len = 32;