Commit bf501c3e authored by Alan Cox's avatar Alan Cox Committed by Greg Kroah-Hartman

ray_cs: Fix copy_from_user handling

commit 575c9ed7 upstream.

I've not touched the other stuff here but the word "locking" comes to mind.
Signed-off-by: default avatarAlan Cox <alan@linux.intel.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent e676b2bd
...@@ -2878,7 +2878,7 @@ static int write_essid(struct file *file, const char __user *buffer, ...@@ -2878,7 +2878,7 @@ static int write_essid(struct file *file, const char __user *buffer,
unsigned long count, void *data) unsigned long count, void *data)
{ {
static char proc_essid[33]; static char proc_essid[33];
int len = count; unsigned int len = count;
if (len > 32) if (len > 32)
len = 32; len = 32;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment