This patch fixes sparse warnings about the memcmp function unsafely
accessing userspace memory without first copying it to kernel space.
Signed-off-by: Charlie Sands <sandsch@xxxxxxxxxxxxxxxxxxxxx>
---
V2: Fixed checkpatch.pl warning and changed variable name as suggested
by Greg K. H. and improved error checking on the "copy_from_user" function as
suggested by Pavel Skripkin.
drivers/staging/r8188eu/os_dep/ioctl_linux.c | 21 ++++++++++++--------
1 file changed, 13 insertions(+), 8 deletions(-)