diff options
author | Sakari Ailus <sakari.ailus@linux.intel.com> | 2020-11-10 00:07:22 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2020-11-17 07:12:18 +0100 |
commit | cf7f34777a5b4100a3a44ff95f3d949c62892bdd (patch) | |
tree | 7cd7cba28cb5d5d36e072be42256df87a29401f2 /drivers/media/usb/cx231xx | |
parent | 273775eea8ad94bfdde3a82b96836e8ec34dbe08 (diff) | |
download | linux-cf7f34777a5b4100a3a44ff95f3d949c62892bdd.tar.bz2 |
media: vim2m: Register video device after setting up internals
Prevent NULL (or close to NULL) pointer dereference in various places by
registering the video device only when the V4L2 m2m framework has been set
up.
Fixes: commit 96d8eab5d0a1 ("V4L/DVB: [v5,2/2] v4l: Add a mem-to-mem videobuf framework test device")
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers/media/usb/cx231xx')
0 files changed, 0 insertions, 0 deletions