mirror of
https://github.com/torvalds/linux.git
synced 2024-11-25 13:41:51 +00:00
e6a3ea83fb
As reported by Coverity, the logic at tpg_precalculate_line()
blindly rescales the buffer even when scaled_witdh is equal to
zero. If this ever happens, this will cause a division by zero.
Instead, add a WARN_ON_ONCE() to trigger such cases and return
without doing any precalculation.
Fixes:
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
v4l2-tpg-colors.c | ||
v4l2-tpg-core.c |