linux/drivers/hwtracing
Lin Yujun 8c4e7e646d coresight: Fix incorrect handling for return value of devm_kzalloc
[ Upstream commit 70714eb724 ]

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

Fixes: 4277f035d2 ("coresight: trbe: Add a representative coresight_platform_data for TRBE")
Signed-off-by: Lin Yujun <linyujun809@h-partners.com>
Reviewed-by: James Clark <james.clark@linaro.org>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Link: https://lore.kernel.org/r/20250908122022.1315399-1-linyujun809@h-partners.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2025-10-15 12:00:16 +02:00
..
coresight coresight: Fix incorrect handling for return value of devm_kzalloc 2025-10-15 12:00:16 +02:00
intel_th intel_th: avoid using deprecated page->mapping, index fields 2025-05-29 11:01:58 +02:00
ptt hwtracing: hisi_ptt: Assign parent for event_source device 2024-05-02 11:36:11 +01:00
stm [tree-wide] finally take no_llseek out 2024-09-27 08:18:43 -07:00
Kconfig hwtracing: hisi_ptt: Add trace function support for HiSilicon PCIe Tune and Trace device 2022-09-08 16:26:17 -06:00