Commit 70714eb7 authored by Lin Yujun's avatar Lin Yujun Committed by Suzuki K Poulose
Browse files

coresight: Fix incorrect handling for return value of devm_kzalloc



The return value of devm_kzalloc could be an null pointer,
use "!desc.pdata" to fix incorrect handling return value
of devm_kzalloc.

Fixes: 4277f035 ("coresight: trbe: Add a representative coresight_platform_data for TRBE")
Signed-off-by: default avatarLin Yujun <linyujun809@h-partners.com>
Reviewed-by: default avatarJames Clark <james.clark@linaro.org>
Signed-off-by: default avatarSuzuki K Poulose <suzuki.poulose@arm.com>
Link: https://lore.kernel.org/r/20250908122022.1315399-1-linyujun809@h-partners.com
parent 43e0a92c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment