summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorSakari Ailus <sakari.ailus@linux.intel.com>2023-12-07 13:00:02 +0300
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2023-12-13 15:21:20 +0300
commitab8d7194acd1fea1702fff41a1ec93e458b6dcbf (patch)
treef061586f9b971c07f08dbc1a991797a8b474baca /tools/perf/scripts/python/exported-sql-viewer.py
parentfb16c04a538e1fa177bf2dcdf763292d51fe6e2b (diff)
downloadlinux-ab8d7194acd1fea1702fff41a1ec93e458b6dcbf.tar.xz
media: v4l: Safely to call v4l2_subdev_cleanup on an uninitialised subdev
Graciously handle an uninitialised (but still zeroed) sub-device in v4l2_subdev_cleanup(). The list_empty() check there is unnecessary, too, so replace that by cheking whether the lists's next field is NULL. Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions