Unverified Commit 9734f4b2 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!14659 firmware: arm_scpi: Check the DVFS OPP count returned by the firmware

parents d0d087dd 77994f1d
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -627,6 +627,9 @@ static struct scpi_dvfs_info *scpi_dvfs_get_info(u8 domain)
	if (ret)
		return ERR_PTR(ret);

	if (!buf.opp_count)
		return ERR_PTR(-ENOENT);

	info = kmalloc(sizeof(*info), GFP_KERNEL);
	if (!info)
		return ERR_PTR(-ENOMEM);