]> 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)
commit40c7a3c4cde82dad8422c9977b668b4c99c5cde9
tree4b8e1416140dd578d75115c9133640679beba127
parent3761ca7767c8ce54739b7e0d49030341c9907cf8
[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