1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/media/platform/vimc
Hans Verkuil f74267b51c media: vimc: zero the media_device on probe
The media_device is part of a static global vimc_device struct.
The media framework expects this to be zeroed before it is
used, however, since this is a global this is not the case if
vimc is unbound and then bound again.

So call memset to ensure any left-over values are cleared.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2019-03-19 13:30:32 -04:00
..
Kconfig [media] vimc: sen: Integrate the tpg on the sensor 2017-06-23 08:30:31 -03:00
Makefile media: vimc: Add vimc-streamer for stream control 2019-02-07 12:23:09 -05:00
vimc-capture.c media: vimc: add USERPTR support 2019-02-18 10:55:29 -05:00
vimc-common.c media: vimc: Add vimc-streamer for stream control 2019-02-07 12:23:09 -05:00
vimc-common.h media: vimc: Add vimc-streamer for stream control 2019-02-07 12:23:09 -05:00
vimc-core.c media: vimc: zero the media_device on probe 2019-03-19 13:30:32 -04:00
vimc-debayer.c media: vimc: Add vimc-streamer for stream control 2019-02-07 12:23:09 -05:00
vimc-scaler.c media: vimc: Add vimc-streamer for stream control 2019-02-07 12:23:09 -05:00
vimc-sensor.c media: vimc: Remove unused but set variables 2019-02-18 10:58:08 -05:00
vimc-streamer.c media: vimc: Add vimc-streamer for stream control 2019-02-07 12:23:09 -05:00
vimc-streamer.h media: vimc: Add vimc-streamer for stream control 2019-02-07 12:23:09 -05:00