[media] media: info leak in __media_device_enum_links()
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 13 Apr 2013 09:32:15 +0000 (06:32 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 12 Jun 2013 21:52:45 +0000 (18:52 -0300)
commitc88e739b1fad662240e99ecbd0bdaac871717987
treed4534b04e1d1671fa55b39bac18e72cbb527c9d4
parentfe905b8cc992edd3d1f729f4a88c4701e7c3b774
[media] media: info leak in __media_device_enum_links()

These structs have holes and reserved struct members which aren't
cleared.  I've added a memset() so we don't leak stack information.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/media-device.c