]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
declance: Rate-limit DMA errors
authorMaciej W. Rozycki <macro@orcam.me.uk>
Sun, 29 Mar 2026 18:07:24 +0000 (19:07 +0100)
committerJakub Kicinski <kuba@kernel.org>
Wed, 1 Apr 2026 02:32:41 +0000 (19:32 -0700)
Prevent the system from becoming unusable due to a flood of DMA error
messages.

Signed-off-by: Maciej W. Rozycki <macro@orcam.me.uk>
Link: https://patch.msgid.link/alpine.DEB.2.21.2603291838370.60268@angie.orcam.me.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/amd/declance.c

index e6d56fcdc1ddd3c3cf05432c5535ab77b5dcd939..24aa4803b4ae1a5af47131652ed0c651c3e4e6b0 100644 (file)
@@ -727,7 +727,7 @@ static irqreturn_t lance_dma_merr_int(int irq, void *dev_id)
 {
        struct net_device *dev = dev_id;
 
-       printk(KERN_ERR "%s: DMA error\n", dev->name);
+       pr_err_ratelimited("%s: DMA error\n", dev->name);
        return IRQ_HANDLED;
 }