diff options
author | 2019-03-08 08:02:26 -0500 | |
---|---|---|
committer | 2019-03-19 13:30:32 -0400 | |
commit | f74267b51cb36321f777807b2e04ca02167ecc08 (patch) | |
tree | ece98a2aafca3a6cf39376beb2c2ab2e7f8ec00e /drivers/media/platform/vimc/vimc-sensor.c | |
parent | media: v4l2-subdev: handle module refcounting here (diff) | |
download | wireguard-linux-f74267b51cb36321f777807b2e04ca02167ecc08.tar.xz wireguard-linux-f74267b51cb36321f777807b2e04ca02167ecc08.zip |
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>
Diffstat (limited to 'drivers/media/platform/vimc/vimc-sensor.c')
0 files changed, 0 insertions, 0 deletions