staging: csr: info leak in unifi_cfg_get_info()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 4 Apr 2013 06:31:24 +0000 (09:31 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Apr 2013 21:17:00 +0000 (14:17 -0700)
commit69c1440e864287914c94c244b3d1ca7802089e66
treec23874db446fcb96940f1c3e13b1f73afbd6ccd7
parent2c71c4ff57a6564097bedd45bc589f73da798a3a
staging: csr: info leak in unifi_cfg_get_info()

"cfg_ap_config" has a number of fields which are not cleared before we
copy them to the user.  I've added a memset() at the beginning to set
everything to zero.

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