diff options
author | Jiri Slaby <jslaby@suse.cz> | 2010-02-10 18:32:42 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-02-26 13:10:57 -0500 |
commit | fd9be0dc9b0b2baf203cfef8c8109859d05d0e01 (patch) | |
tree | d4e4c3e1accdc3683a169b5551cdc5339f6bb193 /drivers/media/dvb | |
parent | 7ca7ef6011e92b52a365ddc78f6668e01793c572 (diff) |
V4L/DVB: DVB: ngene, fix memset parameters
Switch second and third memset parameter to stamp the length buffer bytes
by 0xff's, not 255 bytes by low 8 bits of Length.
Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, jirislaby@gmail.com, Matthias Benesch <twoof7@freenet.de>, Ralph Metzler <rjkm@metzlerbros.de>, Oliver Endriss <o.endriss@gmx.de>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Matthias Benesch <twoof7@freenet.de>
Cc: Ralph Metzler <rjkm@metzlerbros.de>
Cc: Oliver Endriss <o.endriss@gmx.de>
Cc: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb')
-rw-r--r-- | drivers/media/dvb/ngene/ngene-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/dvb/ngene/ngene-core.c b/drivers/media/dvb/ngene/ngene-core.c index cb5982ed8504..0150dfe7cfbb 100644 --- a/drivers/media/dvb/ngene/ngene-core.c +++ b/drivers/media/dvb/ngene/ngene-core.c | |||
@@ -564,7 +564,7 @@ static void FillTSBuffer(void *Buffer, int Length, u32 Flags) | |||
564 | { | 564 | { |
565 | u32 *ptr = Buffer; | 565 | u32 *ptr = Buffer; |
566 | 566 | ||
567 | memset(Buffer, Length, 0xff); | 567 | memset(Buffer, 0xff, Length); |
568 | while (Length > 0) { | 568 | while (Length > 0) { |
569 | if (Flags & DF_SWAP32) | 569 | if (Flags & DF_SWAP32) |
570 | *ptr = 0x471FFF10; | 570 | *ptr = 0x471FFF10; |