staging: ft1000: fix kernel info leak to userland for statistics
authorVasiliy Kulikov <segooon@gmail.com>
Sun, 3 Oct 2010 17:22:48 +0000 (21:22 +0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 5 Oct 2010 18:42:20 +0000 (11:42 -0700)
commit86ee1e49cf8bd07d4e849be8f056c6bc179686b8
tree0a55aeb8db9c6522069acd2c76b8e992db6d2ceb
parentb7378b9ed641b9e39f613d22c762a8ac2a15b8b8
staging: ft1000: fix kernel info leak to userland for statistics

get_stat_data is not fully initialized before copy_to_user() call,
e.g. LedStat is not always set.

Signed-off-by: Vasiliy Kulikov <segooon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/ft1000/ft1000-usb/ft1000_chdev.c