mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-04 20:19:47 +08:00
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:
|
||
|---|---|---|
| .. | ||
| am437x-vpfe_regs.h | ||
| am437x-vpfe.c | ||
| am437x-vpfe.h | ||
| Kconfig | ||
| Makefile | ||