summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/compaction-times.py
diff options
context:
space:
mode:
authorSakari Ailus <sakari.ailus@linux.intel.com>2019-08-15 10:36:49 +0300
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2020-12-02 17:55:44 +0300
commit989bea48915861171421bd6e1367bf4c9407513d (patch)
tree7b920aa000b8c970efe5ff2c3c0c3d74cfd233ea /tools/perf/scripts/python/compaction-times.py
parent7daaf0bc24ad81ec13b444a047cf4f66827ba96e (diff)
downloadlinux-989bea48915861171421bd6e1367bf4c9407513d.tar.xz
media: v4l: subdev: Set sd->devnode before registering the subdev
The subdev's video device node was only assigned after registering the device node in the system. While it is unlikely that a driver needed to use this field in handling system calls to its file handle, there remains a slim chance the devnode field remains NULL while the driver expects to find a video node there. Assign the devnode field before registering the device, and assign it back to NULL if the registration failed. Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Reviewed-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/compaction-times.py')
0 files changed, 0 insertions, 0 deletions