From: Dave Jones Date: Mon, 13 Feb 2006 23:34:58 +0000 (-0800) Subject: [ATM]: Ratelimit atmsvc failure messages X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=bf3883c12fece9189ab4f7bb6e2690451db1366e;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [ATM]: Ratelimit atmsvc failure messages This seems to be trivial to trigger. Signed-off-by: Dave Jones Signed-off-by: David S. Miller --- diff --git a/net/atm/signaling.c b/net/atm/signaling.c index e7211a7f382c..93ad59a28ef5 100644 --- a/net/atm/signaling.c +++ b/net/atm/signaling.c @@ -56,7 +56,8 @@ static void sigd_put_skb(struct sk_buff *skb) remove_wait_queue(&sigd_sleep,&wait); #else if (!sigd) { - printk(KERN_WARNING "atmsvc: no signaling demon\n"); + if (net_ratelimit()) + printk(KERN_WARNING "atmsvc: no signaling demon\n"); kfree_skb(skb); return; }