diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2010-12-31 15:47:23 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-01-19 14:52:13 +0100 |
commit | 46b633779b299c7fb3d78f153a5034055f99cd45 (patch) | |
tree | 45db9a1313d43a9438f105f3d257cc592cf050a6 /drivers/scsi/dmx3191d.c | |
parent | [media] zoran: use video_device_alloc instead of kmalloc (diff) | |
download | linux-46b633779b299c7fb3d78f153a5034055f99cd45.tar.xz linux-46b633779b299c7fb3d78f153a5034055f99cd45.zip |
[media] v4l2-dev: don't memset video_device.dev
Zeroing video_device.dev causes a memory leak if video_set_drvdata
was called before video_register_device was called. video_set_drvdata
calls dev_set_drvdata which allocates video_device.dev.p.
memsetting this will prevent freeing of that memory.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/scsi/dmx3191d.c')
0 files changed, 0 insertions, 0 deletions