diff mbox

[1/1] DVB: ngene, fix memset parameters

Message ID 1265844762-17730-1-git-send-email-jslaby@suse.cz (mailing list archive)
State Accepted
Headers show

Commit Message

Jiri Slaby Feb. 10, 2010, 11:32 p.m. UTC
None
diff mbox

Patch

diff --git a/drivers/media/dvb/ngene/ngene-core.c b/drivers/media/dvb/ngene/ngene-core.c
index cb5982e..0150dfe 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)
 {
 	u32 *ptr = Buffer;
 
-	memset(Buffer, Length, 0xff);
+	memset(Buffer, 0xff, Length);
 	while (Length > 0) {
 		if (Flags & DF_SWAP32)
 			*ptr = 0x471FFF10;