]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mwave: fix info leak in mwave_ioctl()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 9 May 2013 23:57:49 +0000 (09:57 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 21 May 2013 04:17:59 +0000 (14:17 +1000)
commitb0856719d1d4c62c609465755764f99817ba1aa6
tree7eafc4456ded8ac6913b3d49e8fa695865ff9994
parenta4f35a75f8d91b805700ac5849cb9a9e5ffa8adb
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