mac802154: use rate limited warnings for malformed frames
authorAristeu Rozanski <arozansk@redhat.com>
Mon, 25 Jul 2016 15:46:41 +0000 (11:46 -0400)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 19 Sep 2016 18:19:34 +0000 (20:19 +0200)
Signed-off-by: Aristeu Rozanski <arozansk@redhat.com>
Acked-by: Alexander Aring <aar@pengutronix.de>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/mac802154/rx.c

index b978da018bf89aa82401579161a5081192402082..4dcf6e18563a69603a15851ec7f1657ab4847b9f 100644 (file)
@@ -109,8 +109,8 @@ ieee802154_subif_frame(struct ieee802154_sub_if_data *sdata,
        case IEEE802154_FC_TYPE_DATA:
                return ieee802154_deliver_skb(skb);
        default:
-               pr_warn("ieee802154: bad frame received (type = %d)\n",
-                       mac_cb(skb)->type);
+               pr_warn_ratelimited("ieee802154: bad frame received "
+                                   "(type = %d)\n", mac_cb(skb)->type);
                goto fail;
        }