aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorMartin Fuzzey <[email protected]>2023-06-16 16:36:28 +0200
committerMark Brown <[email protected]>2023-07-17 06:15:18 +0100
commit98e2dd5f7a8be5cb2501a897e96910393a49f0ff (patch)
tree8ee47ea81581ac841f4c89a76def12b898454e7e /lib/test_fortify/write_overflow-strncpy-src.c
parentfdf0eaf11452d72945af31804e2a1048ee1b574c (diff)
regulator: da9063: fix null pointer deref with partial DT config
When some of the da9063 regulators do not have corresponding DT nodes a null pointer dereference occurs on boot because such regulators have no init_data causing the pointers calculated in da9063_check_xvp_constraints() to be invalid. Do not dereference them in this case. Fixes: b8717a80e6ee ("regulator: da9063: implement setter for voltage monitoring") Signed-off-by: Martin Fuzzey <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions