diff options
author | Flavio Suligoi <[email protected]> | 2023-11-29 17:45:14 +0100 |
---|---|---|
committer | Lee Jones <[email protected]> | 2023-12-01 11:24:21 +0000 |
commit | ab47505ce45b869ab649024dc932e981fcdd6e5f (patch) | |
tree | 7f5317ce33e37099cd9e9ed932d8cf55a844677b /scripts/gdb/linux/utils.py | |
parent | 58793f263abc8e5233fabf7466219202db09d048 (diff) |
backlight: mp3309c: Fix uninitialized local variable
In the function "pm3309c_parse_dt_node", when the dimming analog control
mode (by I2C messages) is enabled, the local variable "prop_levels" is
tested without any initialization, as indicated by the following smatch
warning:
drivers/video/backlight/mp3309c.c:279 pm3309c_parse_dt_node() error: uninitialized symbol 'prop_levels'.
To avoid any problem in case of undefined behavior, we need to initialize
it to "NULL".
Reported-by: Dan Carpenter <[email protected]>
Closes: https://lore.kernel.org/dri-devel/[email protected]/
Fixes: 2e914516a58c ("backlight: mp3309c: Add support for MPS MP3309C")
Signed-off-by: Flavio Suligoi <[email protected]>
Reviewed-by: Daniel Thompson <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Lee Jones <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions