lkml.org 
[lkml]   [2021]   [Aug]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] amd/iommu: fix logic bug in amd_iommu_report_page_fault()
On Sat, Jul 31, 2021 at 12:26:37PM -0700, Luigi Rizzo wrote:
> amd_iommu_report_page_fault() has two print paths, depending on whether or
> not it can find a pci device. But the code erroneously enters the second
> path if the rate limiter in the first path triggers:
> if (dev_data && ratelimit(A)) { A; } else if (ratelimit(B)) { B; }
> The correct code should be
> if (dev_data) { if (ratelimit(A)) { A;} } else if (ratelimit(B)) { B; }
>
> Signed-off-by: Luigi Rizzo <lrizzo@google.com>
> ---
> drivers/iommu/amd/iommu.c | 8 +++++---
> 1 file changed, 5 insertions(+), 3 deletions(-)

Thanks, but I queued this patch already:

https://lore.kernel.org/r/YPgk1dD1gPMhJXgY@wantstofly.org

Regards,

Joerg

\
 
 \ /
  Last update: 2021-08-02 16:18    [W:0.061 / U:0.228 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site