Re: [PATCH v5 1/4] media: v4l2-subdev: Verify arguments in v4l2_subdev_call()

2019-05-14 Thread Hans Verkuil
On 5/12/19 10:15 PM, Janusz Krzysztofik wrote: > Correctness of format type (try or active) and pad ID parameters passed > to subdevice operation callbacks is now verified only for IOCTL calls. > However, those callbacks are also used by drivers, e.g., V4L2 host > interfaces. > > Since both subdev

[PATCH v5 1/4] media: v4l2-subdev: Verify arguments in v4l2_subdev_call()

2019-05-12 Thread Janusz Krzysztofik
Correctness of format type (try or active) and pad ID parameters passed to subdevice operation callbacks is now verified only for IOCTL calls. However, those callbacks are also used by drivers, e.g., V4L2 host interfaces. Since both subdev_do_ioctl() and drivers are using v4l2_subdev_call() macro