Commit e6beb47e authored by Haoran Liu's avatar Haoran Liu Committed by Michael Ellerman
Browse files

powerpc/powernv: Add error handling to opal_prd_range_is_valid



In the opal_prd_range_is_valid function within opal-prd.c,
error handling was missing for the of_get_address call.
This patch adds necessary error checking, ensuring that the
function gracefully handles scenarios where of_get_address fails.

Signed-off-by: default avatarHaoran Liu <liuhaoran14@163.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20231127144108.29782-1-liuhaoran14@163.com
parent ba5b952a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment