On 2019/7/23 0:14, Lorenzo Pieralisi wrote:
> Commit 36a2ba07757d ("ACPI/IORT: Reject platform device creation on NUMA
> node mapping failure") introduced a local variable 'node' in
> arm_smmu_v3_set_proximity() that shadows the struct acpi_iort_node
> pointer function parameter.
> 
> Execution was unaffected but it is prone to errors and can lead
> to subtle bugs.
> 
> Rename the local variable to prevent any issue.
> 
> Reported-by: Will Deacon <w...@kernel.org>
> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieral...@arm.com>
> Cc: Will Deacon <w...@kernel.org>
> Cc: Hanjun Guo <guohan...@huawei.com>
> Cc: Sudeep Holla <sudeep.ho...@arm.com>
> Cc: Catalin Marinas <catalin.mari...@arm.com>
> Cc: Robin Murphy <robin.mur...@arm.com>
> Cc: Kefeng Wang <wangkefeng.w...@huawei.com>
> ---
>  drivers/acpi/arm64/iort.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)

Reviewed-by: Hanjun Guo <guohan...@huawei.com>

Reply via email to