mirror of
https://github.com/genesi/linux-legacy.git
synced 2026-09-18 12:44:18 +00:00
ray_cs: Fix copy_from_user handling
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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
e676b2bd45
commit
bf501c3e8b
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user