diff options
author | Daniel Scheller <d.scheller@gmx.net> | 2017-07-09 15:42:45 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-08-20 07:27:35 -0400 |
commit | b9a92f62c555a37e5676f695e94616a261f9403e (patch) | |
tree | 3f6132ec8090423dedd7952bfc641692b54329bd /fs/hfsplus | |
parent | bb4cec96e5d7f0ff7f397f4518399be77a2f12db (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 'fs/hfsplus')
0 files changed, 0 insertions, 0 deletions