aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins/gcc-generate-simple_ipa-pass.h
diff options
context:
space:
mode:
authorHans Verkuil <[email protected]>2019-06-29 09:00:10 -0400
committerMauro Carvalho Chehab <[email protected]>2019-07-11 08:59:54 -0400
commit6bda7073f335db261345d403123d9a8c0bc1e36b (patch)
tree41422ed6eb789dd514e8b6cacf721ee68b632808 /scripts/gcc-plugins/gcc-generate-simple_ipa-pass.h
parentf81cbfc4f82a75ca0a2dc181a9c93b88f0e6509d (diff)
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 <[email protected]> Reported-by: Niklas Söderlund <[email protected]> Fixes: a8fa55078a77 ("media: v4l2-subdev: Verify arguments in v4l2_subdev_call()") Tested-by: Niklas Söderlund <[email protected]> Tested-by: Geert Uytterhoeven <[email protected]> Acked-by: Sakari Ailus <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/gcc-generate-simple_ipa-pass.h')
0 files changed, 0 insertions, 0 deletions