diff options
author | Vladimir Lypak <junak.pub@gmail.com> | 2021-02-17 23:11:34 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2021-03-11 11:59:43 +0100 |
commit | 2f90857781bb6e73666fdec2293b7f81cd2a0805 (patch) | |
tree | c39d407ddc59869c5f57349c3635b6de13c9135d /arch | |
parent | 78c2cc28df4a1f6f971d455da9b70d5540bd3de8 (diff) |
media: qcom: camss: Fix overflows in clock rate calculations
Because of u32 type being used to store pixel clock rate, expression used
to calculate pipeline clocks (pixel_clock * bpp) produces wrong value due
to integer overflow. This patch changes data type used to store, pass and
retrieve pixel_clock from u32 to u64 to make this mistake less likely to
be repeated in the future.
Signed-off-by: Vladimir Lypak <junak.pub@gmail.com>
Acked-by: Robert Foss <robert.foss@linaro.org>
Signed-off-by: Andrey Konovalov <andrey.konovalov@linaro.org>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions