Home
last modified time | relevance | path

Searched hist:"13 c81489" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/media/dvb-frontends/
H A Dstv0910.c13c81489 Mon Jul 03 12:20:55 CDT 2017 Daniel Scheller <d.scheller@gmx.net> media: dvb-frontends/stv0910: Fix possible buffer overflow

Fixes smatch error:

drivers/media/dvb-frontends/stv0910.c:715 dvbs2_nbch() error: buffer overflow 'nbch[fectype]' 2 <= 28

Also, fixes the nbch array table by adding the DUMMY_PLF element at the top
to match the enums (table element order was off by one before).

Patch sent upstream aswell.

Cc: Ralph Metzler <rjkm@metzlerbros.de>
Signed-off-by: Daniel Scheller <d.scheller@gmx.net>
Tested-by: Richard Scobie <r.scobie@clear.net.nz>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
13c81489 Mon Jul 03 12:20:55 CDT 2017 Daniel Scheller <d.scheller@gmx.net> media: dvb-frontends/stv0910: Fix possible buffer overflow

Fixes smatch error:

drivers/media/dvb-frontends/stv0910.c:715 dvbs2_nbch() error: buffer overflow 'nbch[fectype]' 2 <= 28

Also, fixes the nbch array table by adding the DUMMY_PLF element at the top
to match the enums (table element order was off by one before).

Patch sent upstream aswell.

Cc: Ralph Metzler <rjkm@metzlerbros.de>
Signed-off-by: Daniel Scheller <d.scheller@gmx.net>
Tested-by: Richard Scobie <r.scobie@clear.net.nz>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>