diff options
| author | Maciej S. Szmigiero <[email protected]> | 2017-10-10 17:35:37 -0400 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2017-12-11 13:04:33 -0500 |
| commit | 4f1bdf0a75a4d16149c470800d8c4bf3da13e92d (patch) | |
| tree | 409f8bbb0ec0b41668de90049a4da0e81799008e /tools/perf/scripts/python | |
| parent | 7ff061303382ed4151ff6932a9f356f6aac0bc4a (diff) | |
media: cx25840: fix a possible divide by zero in set_fmt callback
If set_fmt callback is called with format->width or format->height set to
zero and HACTIVE_CNT or VACTIVE_CNT bits (respectively) in chip are zero
we will divide by zero later in this callback when we try to calculate
HSC or VSC values.
Fix this by explicitly rejecting these values.
Signed-off-by: Maciej S. Szmigiero <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions