Commit aa1844c9 authored by Aaron Ma's avatar Aaron Ma Committed by Greg Kroah-Hartman
Browse files

iommu/amd: Fix NULL dereference bug in match_hid_uid



[ Upstream commit bb6bccba ]

Add a non-NULL check to fix potential NULL pointer dereference
Cleanup code to call function once.

Signed-off-by: default avatarAaron Ma <aaron.ma@canonical.com>
Fixes: 2bf9a0a1 ('iommu/amd: Add iommu support for ACPI HID devices')
Signed-off-by: default avatarJoerg Roedel <jroedel@suse.de>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 320ab115
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment