summaryrefslogtreecommitdiff
path: root/tools/perf/util/python.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@linaro.org>2024-03-16 12:45:27 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-06-12 11:39:21 +0200
commitf3b3f4988af70507fc5e9a91b369d6a2d89c9ff7 (patch)
tree9e9f3fa13a81dc64781e017b03123bd51014a84f /tools/perf/util/python.c
parent48ef87147247ee4c80626ef65c8c7b3da05946e8 (diff)
backlight: mp3309c: Fix signedness bug in mp3309c_parse_fwnode()
[ Upstream commit e962f13b1e86272a5dcdaede2dfb649152e981e9 ] The "num_levels" variable is used to store error codes from device_property_count_u32() so it needs to be signed. This doesn't cause an issue at runtime because devm_kcalloc() won't allocate negative sizes. However, it's still worth fixing. Fixes: b54c828bdba9 ("backlight: mp3309c: Make use of device properties") Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org> Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org> Tested-by: Flavio Suligoi <f.suligoi@asem.it> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://lore.kernel.org/r/74347f67-360d-4513-8939-595e3c4764fa@moroto.mountain Signed-off-by: Lee Jones <lee@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools/perf/util/python.c')
0 files changed, 0 insertions, 0 deletions