Skip to content

Commit

Permalink
ray_cs: Fix copy_from_user handling
Browse files Browse the repository at this point in the history
I've not touched the other stuff here but the word "locking" comes to mind.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Cc: stable@kernel.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Alan Cox authored and Linus Torvalds committed Oct 29, 2009
1 parent ef7562b commit 575c9ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/ray_cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 575c9ed

Please sign in to comment.