drivers/net/usb/hso.c: prevent reading uninitialized memory
authorDan Rosenberg <drosenberg@vsecurity.com>
Wed, 15 Sep 2010 11:43:28 +0000 (11:43 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 17 Sep 2010 04:54:59 +0000 (21:54 -0700)
Fixed formatting (tabs and line breaks).

The TIOCGICOUNT device ioctl allows unprivileged users to read
uninitialized stack memory, because the "reserved" member of the
serial_icounter_struct struct declared on the stack in hso_get_count()
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>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found