6ebf75774f
In vpfe_s_fmt(), when the sensor format and the requested format were
the same, bpp was assigned to vpfe->bpp without being initialized first.
Grab the bpp value that is currently used by using __vpfe_get_format()
instead of its wrapper, vpfe_try_fmt().
This use of uninitialized variable has been found by compiling the
kernel with clang.
Fixes:
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
am437x-vpfe.c | ||
am437x-vpfe.h | ||
am437x-vpfe_regs.h |