Staging: heci: fix userspace pointer mess
authorDongxiao Xu <dongxiao.xu@intel.com>
Sun, 31 May 2009 06:43:35 +0000 (14:43 +0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 19 Jun 2009 18:00:54 +0000 (11:00 -0700)
commit36e844671cbdace27f0462a46cedde0a4d6b1001
tree84f52daeb2f564f961ff0b3528e05355f1000850
parent7a80bfcd1f4bac61d586d3551f74215ff02e9cba
Staging: heci: fix userspace pointer mess

Fix userspace pointer mess.
 - In memcmp(), dest and src pointer should be both in kernel space.
 - Add (void __user *) modification before userspace pointer.

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/heci/heci_main.c
drivers/staging/heci/io_heci.c