Dan Rosenberg a0846f1868 USB: serial/mos*: prevent reading uninitialized stack memory
The TIOCGICOUNT device ioctl in both mos7720.c and mos7840.c allows
unprivileged users to read uninitialized stack memory, because the
"reserved" member of the serial_icounter_struct struct declared on the
stack is not altered or zeroed before being copied back to the user.
This patch takes care of it.

Signed-off-by: Dan Rosenberg <dan.j.rosenberg@gmail.com>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-09-20 16:05:00 -07:00
..
2010-05-20 13:21:33 -07:00
2010-05-20 13:21:46 -07:00
2010-03-02 14:54:16 -08:00
2010-05-20 13:21:46 -07:00
2010-05-20 13:21:47 -07:00
2008-02-01 14:34:47 -08:00
2010-08-10 14:35:44 -07:00
2010-05-20 13:21:47 -07:00
2010-08-10 14:35:44 -07:00
2010-05-20 13:21:33 -07:00
2010-05-20 13:21:49 -07:00
2010-05-20 13:21:40 -07:00
2010-09-03 17:33:41 -07:00
2010-05-20 13:21:47 -07:00
2008-07-22 13:03:22 -07:00
2010-05-20 13:21:32 -07:00