Re: [PATCHv2 for v5.3] v4l2-subdev: fix regression in check_pad()

2019-07-02 Thread Geert Uytterhoeven
Hi Hans, On Sat, 29 Jun 2019, Hans Verkuil wrote: 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

[PATCHv2 for v5.3] v4l2-subdev: fix regression in check_pad()

2019-06-29 Thread Hans Verkuil
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 Reported-by: Niklas Söderlund Fixes: a8fa