commit | 049e684f2de9daa31a32423e16d2d3bd6bbd286f | [log] [tgz] |
---|---|---|
author | Hans Verkuil <hverkuil@xs4all.nl> | Thu Jul 25 08:48:21 2019 -0400 |
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | Thu Jul 25 11:44:21 2019 -0400 |
tree | f6960e0bb518d4975bbdb2957810face0e6d48ad | |
parent | 2c93346698bacd5e1a7fb59b7a5ab84cae1cc5da [diff] |
media: v4l2-dev: fix WARN_ON(!vdev->device_caps) Device nodes of type VFL_TYPE_SUBDEV have a 0 device_caps, so they trigger this warning. Add a check against VFL_TYPE_SUBDEV. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Fixes: 3c1350501c21 ("media: v4l2-dev/ioctl: require non-zero device_caps, verify sane querycap results") Reported-by: Jan Kotas <jank@cadence.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>