aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorStephan Gerhold <[email protected]>2023-07-10 22:34:52 +0200
committerBjorn Andersson <[email protected]>2023-07-15 12:39:48 -0700
commit0ee55c188a3c97309a6794077d5ef4ebd58f62cb (patch)
treeedec19e48c2d4e5a3a73514ed5f94a4f6a39f70f /lib/test_fortify/write_overflow-strncpy-src.c
parent0b6c3bc88bd920d2e89921cd308a0276f05ad8c7 (diff)
remoteproc: qcom: Use of_reserved_mem_lookup()
Reserved memory can be either looked up using the generic function of_address_to_resource() or using the special of_reserved_mem_lookup(). The latter has the advantage that it ensures that the referenced memory region was really reserved and is not e.g. status = "disabled". of_reserved_mem also supports allocating reserved memory dynamically at boot time. This works only when using of_reserved_mem_lookup() since there won't be a fixed address in the device tree. Switch the code to use of_reserved_mem_lookup(), similar to qcom_q6v5_wcss.c which is using it already. There is no functional difference for static reserved memory allocations. While at it this also adds two missing of_node_put() calls in qcom_q6v5_pas.c. Signed-off-by: Stephan Gerhold <[email protected]> Tested-by: Caleb Connolly <[email protected]> # SDM845 Reviewed-by: Caleb Connolly <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bjorn Andersson <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions