staging: vt6655: info leak in ioctl
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 24 Jun 2013 16:12:09 +0000 (19:12 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Jun 2013 22:56:10 +0000 (15:56 -0700)
commit34fbb97c07fce301164d5902639d04ce4f6f3fd5
tree60f53e9a37203c9b3c5fa6a36c204f62194f5291
parent81a589555f4951d4b01fb66c0dc2092fa1b6c4ac
staging: vt6655: info leak in ioctl

The SCmdLinkStatus struct has a couple holes.  There is one between
->bLink and ->wBSSType, and another between ->abySSID and ->uChannel.

I've added a memset() to initialize the struct to zero.  Since we don't
need to clear abySSID any more so I've removed that memset.  It was
wrong anyway: abySSID has "SSID_MAXLEN + 2" (34) bytes, not
"WLAN_SSID_MAXLEN + 1" (33).

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6655/ioctl.c