summaryrefslogtreecommitdiff
path: root/mm/percpu-km.c
diff options
context:
space:
mode:
authorDaniel Scheller <d.scheller@gmx.net>2017-07-09 15:42:45 -0400
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-08-20 07:27:35 -0400
commitb9a92f62c555a37e5676f695e94616a261f9403e (patch)
tree3f6132ec8090423dedd7952bfc641692b54329bd /mm/percpu-km.c
parentbb4cec96e5d7f0ff7f397f4518399be77a2f12db (diff)
media: ddbridge: fix buffer overflow in max_set_input_unlocked()
Picked up code parts introduced one smatch error: drivers/media/pci/ddbridge/ddbridge-maxs8.c:163 max_set_input_unlocked() error: buffer overflow 'dev->link[port->lnr].lnb.voltage' 4 <= 255 Fix this by clamping the .lnb.voltage array access to 0-3 by "& 3"'ing dvb->input. Cc: Ralph Metzler <rjkm@metzlerbros.de> Signed-off-by: Daniel Scheller <d.scheller@gmx.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'mm/percpu-km.c')
0 files changed, 0 insertions, 0 deletions