]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mwave: fix info leak in mwave_ioctl()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 19 Jun 2013 00:08:33 +0000 (10:08 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 19 Jun 2013 07:27:48 +0000 (17:27 +1000)
commit053952be40d8132a422a4403b09fa6324e14f1d9
treed558de5ce5601afeb9f2fa8ec44d8f1ffcba1017
parenta660f490712703538b6eb072c24b654bda64fcf2
mwave: fix info leak in mwave_ioctl()

Smatch complains that on 64 bit systems, there is a hole in the
MW_ABILITIES struct between ->component_count and ->component_list[].  It
leaks stack information from the mwave_ioctl() function.

I've added a memset() to initialize the struct to zero.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Greg KH <greg@kroah.com>
Cc: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/char/mwave/tp3780i.c