mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
ray_cs: Fix copy_from_user handling
I've not touched the other stuff here but the word "locking" comes to mind. Signed-off-by: Alan Cox <[email protected]> Cc: [email protected] Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
ef7562b7f2
commit
575c9ed779
1 changed files with 1 additions and 1 deletions
|
|
@ -2879,7 +2879,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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue