media: v4l2-subdev: Verify v4l2_subdev_call() pad config argument
authorJanusz Krzysztofik <jmkrzyszt@gmail.com>
Mon, 20 May 2019 21:27:47 +0000 (17:27 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 24 Jun 2019 18:55:20 +0000 (14:55 -0400)
commit374d62e7aa50f66c1a4316be9221df4d0f38addd
tree939548f0f424cf5fad4c88d436d6c22b5a357efa
parenta4f4a763d8a01d0f461e3b8c4774ed45e9ded5f4
media: v4l2-subdev: Verify v4l2_subdev_call() pad config argument

Extend parameter checks performed by v4l2_subdev_call() with a check for
a non-NULL pad config pointer if V4L2_SUBDEV_FORMAT_TRY format type is
requested so drivers don't need to care.

Signed-off-by: Janusz Krzysztofik <jmkrzyszt@gmail.com>
Reviewed-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/v4l2-core/v4l2-subdev.c