]> Git Repo - linux.git/commit
media: v4l: subdev: Fail graciously when getting try data for NULL state
authorSakari Ailus <[email protected]>
Fri, 26 Aug 2022 11:53:58 +0000 (13:53 +0200)
committerMauro Carvalho Chehab <[email protected]>
Sat, 24 Sep 2022 07:05:02 +0000 (09:05 +0200)
commit2ba3e38517f5a4ebf9c997168079dca01b7f9fc6
treeb10b59cdb23a34d9d5b63b9c59b42a709d17a452
parentb9eb3ab6f30bf32f7326909f17949ccb11bab514
media: v4l: subdev: Fail graciously when getting try data for NULL state

The state argument for the functions for obtaining various parts of the
state is NULL if it is called by drivers for active state. Fail graciously
in that case instead of dereferencing a NULL pointer.

Suggested-by: Bingbu Cao <[email protected]>
Signed-off-by: Sakari Ailus <[email protected]>
Reviewed-by: Tomi Valkeinen <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
include/media/v4l2-subdev.h
This page took 0.058059 seconds and 4 git commands to generate.