|
@@ -126,6 +126,10 @@ struct sk_buff *br_handle_frame(struct net_bridge_port *p, struct sk_buff *skb)
|
|
if (!is_valid_ether_addr(eth_hdr(skb)->h_source))
|
|
if (!is_valid_ether_addr(eth_hdr(skb)->h_source))
|
|
goto drop;
|
|
goto drop;
|
|
|
|
|
|
|
|
+ skb = skb_share_check(skb, GFP_ATOMIC);
|
|
|
|
+ if (!skb)
|
|
|
|
+ return NULL;
|
|
|
|
+
|
|
if (unlikely(is_link_local(dest))) {
|
|
if (unlikely(is_link_local(dest))) {
|
|
/* Pause frames shouldn't be passed up by driver anyway */
|
|
/* Pause frames shouldn't be passed up by driver anyway */
|
|
if (skb->protocol == htons(ETH_P_PAUSE))
|
|
if (skb->protocol == htons(ETH_P_PAUSE))
|