DVB: ngene, fix memset parameters
PATCH 1/1 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.
Signed-off-by Jiri Slaby <[email protected]>
Cc Matthias Benesch <[email protected]>
Cc Ralph Metzler <[email protected]>
Cc Oliver Endriss <[email protected]>
Cc Mauro Carvalho Chehab <[email protected]>
--- drivers/media/dvb/ngene/ngene-core.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/media/dvb/ngene/ngene-core.c +1 -1
@@ -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 ;
Signature · 1 line
1.6.6.1
Quoted 27 lines · Jiri Slaby
Switch second and third memset parameter to stamp the length buffer bytes by 0xff's, not 255 bytes by low 8 bits of Length.
Signed-off-by Jiri Slaby <[email protected]>Cc Matthias Benesch <[email protected]>Cc Ralph Metzler <[email protected]>Cc Oliver Endriss <[email protected]>Cc Mauro Carvalho Chehab <[email protected]>--- drivers/media/dvb/ngene/ngene-core.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)drivers/media/dvb/ngene/ngene-core.c +1
-1@@ -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 ;Signature · 1 line
1.6.6.1
Acked-by Oliver Endriss <[email protected]>
CU
Oliver
Signature · 5 lines
---------------------------------------------------------------- VDR Remote Plugin 0.4.0: http://www.escape-edv.de/endriss/vdr/ 4 MByte Mod: http://www.escape-edv.de/endriss/dvb-mem-mod/ Full-TS Mod: http://www.escape-edv.de/endriss/dvb-full-ts-mod/ ----------------------------------------------------------------