]> err.no Git - linux-2.6/commit
V4L/DVB (3568b): saa7111: Prevent array overrun
authorJean Delvare <khali@linux-fr.org>
Wed, 22 Mar 2006 06:48:32 +0000 (03:48 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Thu, 23 Mar 2006 14:24:05 +0000 (11:24 -0300)
commit6eb5d9ca9f1496108cb86f2d9bfc2db5d9c796fe
tree1fe693708ca8aed3f4f81dfb4a5c4254b4968e28
parent6254312352dfd1c996245cb3bc74be901dc165cc
V4L/DVB (3568b): saa7111: Prevent array overrun

Explicitely state the number of registers the SAA7111 has, and use that
defined value where relevant.  This should prevent any future array overrun
like the one I just fixed in the saa7110 driver.

This patch also saves 8 bytes of memory as a side effect, as the register
cache was larger than needed.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/saa7111.c