diff options
| author | Daniel Scheller <[email protected]> | 2017-07-09 15:42:45 -0400 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2017-08-20 07:27:35 -0400 |
| commit | b9a92f62c555a37e5676f695e94616a261f9403e (patch) | |
| tree | 3f6132ec8090423dedd7952bfc641692b54329bd /tools/perf/scripts/python/bin/stackcollapse-record | |
| 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 <[email protected]>
Signed-off-by: Daniel Scheller <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions