aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorHans Verkuil <[email protected]>2018-10-08 15:08:27 -0400
committerMauro Carvalho Chehab <[email protected]>2018-10-09 08:10:38 -0400
commit250854eed5d45a73d81e4137dfd85180af6f2ec3 (patch)
treecf1c836f92cdc9a3844c8f54460a20bcb99665aa /tools/perf/scripts/python/export-to-postgresql.py
parent2db3e15243dce41318f5de4595bbb80c390a2d04 (diff)
media: v4l2-tpg: fix kernel oops when enabling HFLIP and OSD
When the OSD is on (i.e. vivid displays text on top of the test pattern), and you enable hflip, then the driver crashes. The cause turned out to be a division of a negative number by an unsigned value. You expect that -8 / 2U would be -4, but in reality it is 2147483644 :-( Fixes: 3e14e7a82c1ef ("vivid-tpg: add hor/vert downsampling support to tpg_gen_text") Signed-off-by: Hans Verkuil <[email protected]> Reported-by: Mauro Carvalho Chehab <[email protected]> Cc: <[email protected]> # for v4.1 and up Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions