summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorPatrick Boettcher <pb@linuxtv.org>2008-09-07 21:04:38 +0200
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-10-05 04:01:21 +0200
commitbda1cda54b7e1654e9416fec76e6342847b25216 (patch)
treeeec81f4c6e24cb897f9f3e85a4a5b8995b58cc2f /drivers
parentV4L/DVB (9037): Fix support for Hauppauge Nova-S SE (diff)
downloadlinux-bda1cda54b7e1654e9416fec76e6342847b25216.tar.xz
linux-bda1cda54b7e1654e9416fec76e6342847b25216.zip
V4L/DVB (9043): S5H1420: Fix size of shadow-array to avoid overflow
The array size of 'shadow' still needs to be fixed in order to not overflow when reading register 0x00. Thanks to Oliver Endriss for pointing that out. Signed-off-by: Patrick Boettcher <pb@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/dvb/frontends/s5h1420.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/dvb/frontends/s5h1420.c b/drivers/media/dvb/frontends/s5h1420.c
index 7d6cb39da1d9..2e9fd2893ede 100644
--- a/drivers/media/dvb/frontends/s5h1420.c
+++ b/drivers/media/dvb/frontends/s5h1420.c
@@ -59,7 +59,7 @@ struct s5h1420_state {
* it does not support repeated-start, workaround: write addr-1
* and then read
*/
- u8 shadow[255];
+ u8 shadow[256];
};
static u32 s5h1420_getsymbolrate(struct s5h1420_state* state);