Re: [PATCH v2.1 5/5] media: Support variable size IOCTL arguments

2016-06-20 Thread Sakari Ailus
Hi Hans, On Fri, Jun 17, 2016 at 06:21:05PM +0200, Hans Verkuil wrote: > On 05/05/2016 01:06 AM, Sakari Ailus wrote: > > Instead of checking for a strict size for the IOCTL arguments, place > > minimum and maximum limits. > > > > As an additional bonus, IOCTL handlers will be able to check

Re: [PATCH v2.1 5/5] media: Support variable size IOCTL arguments

2016-06-17 Thread Hans Verkuil
On 05/05/2016 01:06 AM, Sakari Ailus wrote: > Instead of checking for a strict size for the IOCTL arguments, place > minimum and maximum limits. > > As an additional bonus, IOCTL handlers will be able to check whether the > caller actually set (using the argument size) the field vs. assigning it

[PATCH v2.1 5/5] media: Support variable size IOCTL arguments

2016-05-04 Thread Sakari Ailus
Instead of checking for a strict size for the IOCTL arguments, place minimum and maximum limits. As an additional bonus, IOCTL handlers will be able to check whether the caller actually set (using the argument size) the field vs. assigning it to zero. Separate macro can be provided for that.