Re: [PATCH 08/30] media: v4l2-ioctl: fix some "too small" warnings

2018-03-27 Thread Laurent Pinchart
Hi Mauro, On Monday, 26 March 2018 23:28:55 EEST Mauro Carvalho Chehab wrote: > Em Mon, 26 Mar 2018 21:47:33 +0300 Laurent Pinchart escreveu: > > On Monday, 26 March 2018 13:08:16 EEST Mauro Carvalho Chehab wrote: > > > Em Fri, 23 Mar 2018 23:53:56 +0200 Sakari Ailus escreveu: > > > > On Fri, Mar

Re: [PATCH 08/30] media: v4l2-ioctl: fix some "too small" warnings

2018-03-26 Thread Mauro Carvalho Chehab
Em Mon, 26 Mar 2018 21:47:33 +0300 Laurent Pinchart escreveu: > Hi Mauro, > > On Monday, 26 March 2018 13:08:16 EEST Mauro Carvalho Chehab wrote: > > Em Fri, 23 Mar 2018 23:53:56 +0200 Sakari Ailus escreveu: > > > On Fri, Mar 23, 2018 at 07:56:54AM -0400, Mauro Carvalho Chehab wrote: > > >>

Re: [PATCH 08/30] media: v4l2-ioctl: fix some "too small" warnings

2018-03-26 Thread Laurent Pinchart
Hi Mauro, On Monday, 26 March 2018 13:08:16 EEST Mauro Carvalho Chehab wrote: > Em Fri, 23 Mar 2018 23:53:56 +0200 Sakari Ailus escreveu: > > On Fri, Mar 23, 2018 at 07:56:54AM -0400, Mauro Carvalho Chehab wrote: > >> While the code there is right, it produces three false positives: > >>driver

Re: [PATCH 08/30] media: v4l2-ioctl: fix some "too small" warnings

2018-03-26 Thread Sakari Ailus
Hi Mauro, On Mon, Mar 26, 2018 at 07:08:16AM -0300, Mauro Carvalho Chehab wrote: > Em Fri, 23 Mar 2018 23:53:56 +0200 > Sakari Ailus escreveu: > > > Hi Mauro, > > > > On Fri, Mar 23, 2018 at 07:56:54AM -0400, Mauro Carvalho Chehab wrote: > > > While the code there is right, it produces three fa

Re: [PATCH 08/30] media: v4l2-ioctl: fix some "too small" warnings

2018-03-26 Thread Mauro Carvalho Chehab
Em Fri, 23 Mar 2018 23:53:56 +0200 Sakari Ailus escreveu: > Hi Mauro, > > On Fri, Mar 23, 2018 at 07:56:54AM -0400, Mauro Carvalho Chehab wrote: > > While the code there is right, it produces three false positives: > > drivers/media/v4l2-core/v4l2-ioctl.c:2868 video_usercopy() error: > > co

Re: [PATCH 08/30] media: v4l2-ioctl: fix some "too small" warnings

2018-03-23 Thread Sakari Ailus
Hi Mauro, On Fri, Mar 23, 2018 at 07:56:54AM -0400, Mauro Carvalho Chehab wrote: > While the code there is right, it produces three false positives: > drivers/media/v4l2-core/v4l2-ioctl.c:2868 video_usercopy() error: > copy_from_user() 'parg' too small (128 vs 16383) > drivers/media/v

[PATCH 08/30] media: v4l2-ioctl: fix some "too small" warnings

2018-03-23 Thread Mauro Carvalho Chehab
While the code there is right, it produces three false positives: drivers/media/v4l2-core/v4l2-ioctl.c:2868 video_usercopy() error: copy_from_user() 'parg' too small (128 vs 16383) drivers/media/v4l2-core/v4l2-ioctl.c:2868 video_usercopy() error: copy_from_user() 'parg' too small