]> git.baikalelectronics.ru Git - kernel.git/commit
[media] solo6x10: The size of the thresholds ioctls was too large
authorHans Verkuil <hverkuil@xs4all.nl>
Fri, 29 Mar 2013 10:20:36 +0000 (07:20 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 29 Mar 2013 11:34:23 +0000 (08:34 -0300)
commit075c05c4090f0aed17a020037820b12dca391140
tree4b8e1416140dd578d75115c9133640679beba127
parent33b6dd578db8701f13fdf1939c1f43b5ab8b13fe
[media] solo6x10: The size of the thresholds ioctls was too large

On powerpc the maximum size for the ioctl argument is 8191, and it was
8192. However, the 64x64 array of threshold values is more than is actually
needed in practice for PAL and NTSC formats. A 45x45 array will do just fine.
So change the size accordingly to fix this problem.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/staging/media/solo6x10/solo6x10-disp.c
drivers/staging/media/solo6x10/solo6x10.h