summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/videodev2.h
diff options
context:
space:
mode:
authorHans Verkuil2019-06-29 15:00:10 +0200
committerMauro Carvalho Chehab2019-07-11 14:59:54 +0200
commit6bda7073f335db261345d403123d9a8c0bc1e36b (patch)
tree41422ed6eb789dd514e8b6cacf721ee68b632808 /include/uapi/linux/videodev2.h
parentmedia: allegro: use new v4l2_m2m_ioctl_try_encoder_cmd funcs (diff)
downloadkernel-qcow2-linux-6bda7073f335db261345d403123d9a8c0bc1e36b.tar.gz
kernel-qcow2-linux-6bda7073f335db261345d403123d9a8c0bc1e36b.tar.xz
kernel-qcow2-linux-6bda7073f335db261345d403123d9a8c0bc1e36b.zip
media: v4l2-subdev: fix regression in check_pad()
sd->entity.graph_obj.mdev can be NULL when this function is called, and that breaks existing drivers (rcar-vin, but probably others as well). Check if sd->entity.num_pads is non-zero instead since that doesn't depend on mdev. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Reported-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> Fixes: a8fa55078a77 ("media: v4l2-subdev: Verify arguments in v4l2_subdev_call()") Tested-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> Tested-by: Geert Uytterhoeven <geert+renesas@glider.be> Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'include/uapi/linux/videodev2.h')
0 files changed, 0 insertions, 0 deletions