diff options
-rw-r--r-- | net/dsa/tag_brcm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/dsa/tag_brcm.c b/net/dsa/tag_brcm.c index af82927674e0..cb5a2b7a0118 100644 --- a/net/dsa/tag_brcm.c +++ b/net/dsa/tag_brcm.c | |||
@@ -121,7 +121,8 @@ static int brcm_tag_rcv(struct sk_buff *skb, struct net_device *dev, | |||
121 | /* We should never see a reserved reason code without knowing how to | 121 | /* We should never see a reserved reason code without knowing how to |
122 | * handle it | 122 | * handle it |
123 | */ | 123 | */ |
124 | WARN_ON(brcm_tag[2] & BRCM_EG_RC_RSVD); | 124 | if (unlikely(brcm_tag[2] & BRCM_EG_RC_RSVD)) |
125 | goto out_drop; | ||
125 | 126 | ||
126 | /* Locate which port this is coming from */ | 127 | /* Locate which port this is coming from */ |
127 | source_port = brcm_tag[3] & BRCM_EG_PID_MASK; | 128 | source_port = brcm_tag[3] & BRCM_EG_PID_MASK; |