]> www.infradead.org Git - users/jedix/linux-maple.git/commit
of: property: Avoiding using uninitialized variable @imaplen in parse_interrupt_map()
authorZijun Hu <quic_zijuhu@quicinc.com>
Thu, 9 Jan 2025 13:26:57 +0000 (21:26 +0800)
committerRob Herring (Arm) <robh@kernel.org>
Mon, 13 Jan 2025 13:43:48 +0000 (07:43 -0600)
commitf73780e772c06901e99b2ad114b7f0f3fbe73ad4
treeaa1487c82a204123bfda6f30322ccf040b5dfa16
parente4c00c9b1f70cd11792ff5b825899a6ee0234a62
of: property: Avoiding using uninitialized variable @imaplen in parse_interrupt_map()

parse_interrupt_map() will use uninitialized variable @imaplen if fails
to get property 'interrupt-map'.

Fix by using the variable after successfully getting the property.

Fixes: e7985f43609c ("of: property: Fix fw_devlink handling of interrupt-map")
Signed-off-by: Zijun Hu <quic_zijuhu@quicinc.com>
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Link: https://lore.kernel.org/r/20250109-of_core_fix-v4-6-db8a72415b8c@quicinc.com
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
drivers/of/property.c