Re: [RESEND][PATCH] iommu/amd: Fix NULL dereference bug in match_hid_uid
From: Joerg Roedel
Date: Fri Mar 15 2019 - 11:24:53 EST
On Wed, Mar 13, 2019 at 09:53:24PM +0800, Aaron Ma wrote:
> Add a non-NULL check to fix potential NULL pointer dereference
> Cleanup code to call function once.
>
> Signed-off-by: Aaron Ma <aaron.ma@xxxxxxxxxxxxx>
> ---
> drivers/iommu/amd_iommu.c | 9 +++++++--
> 1 file changed, 7 insertions(+), 2 deletions(-)
Applied with cleaned-up coding style and a Fixes tag, thanks.