mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-01 06:33:07 +00:00
607bcc4213
Fix the following smatch warning:
drivers/media/i2c/ccs/ccs-data.c:524 ccs_data_parse_rules() warn: address
of NULL pointer 'rules'
The CCS static data rule parser does not check an if rule has been
obtained before checking for other rule types (which depend on the if
rule). In practice this means parsing invalid CCS static data could lead
to dereferencing a NULL pointer.
Reported-by: Hans Verkuil <hverkuil@xs4all.nl>
Fixes:
|
||
---|---|---|
.. | ||
ccs-core.c | ||
ccs-data-defs.h | ||
ccs-data.c | ||
ccs-data.h | ||
ccs-limits.c | ||
ccs-limits.h | ||
ccs-quirk.c | ||
ccs-quirk.h | ||
ccs-reg-access.c | ||
ccs-reg-access.h | ||
ccs-regs.h | ||
ccs.h | ||
Kconfig | ||
Makefile | ||
smiapp-reg-defs.h |