diff mbox

[v2,2/2] mac802154: use rate limited warnings for malformed frames

Message ID 1469461601-656-2-git-send-email-arozansk@redhat.com (mailing list archive)
State Accepted
Headers show

Commit Message

'arozansk@redhat.com' July 25, 2016, 3:46 p.m. UTC
v2: rediff on top of previous v2

Signed-off-by: Aristeu Rozanski <arozansk@redhat.com>
---
 net/mac802154/rx.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Alexander Aring July 25, 2016, 4:19 p.m. UTC | #1
Hi,

On 07/25/2016 05:46 PM, Aristeu Rozanski wrote:
> v2: rediff on top of previous v2
> 
> Signed-off-by: Aristeu Rozanski <arozansk@redhat.com>

Acked-by: Alexander Aring <aar@pengutronix.de>
--
To unsubscribe from this list: send the line "unsubscribe linux-wpan" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Marcel Holtmann July 25, 2016, 5:24 p.m. UTC | #2
Hi Aristeu,

> v2: rediff on top of previous v2
> 
> Signed-off-by: Aristeu Rozanski <arozansk@redhat.com>
> ---
> net/mac802154/rx.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)

patch has been applied to bluetooth-next tree.

Regards

Marcel

--
To unsubscribe from this list: send the line "unsubscribe linux-wpan" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/net/mac802154/rx.c b/net/mac802154/rx.c
index b978da0..4dcf6e1 100644
--- a/net/mac802154/rx.c
+++ b/net/mac802154/rx.c
@@ -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;
 	}