diff options
Diffstat (limited to 'net/bridge/br_forward.c')
-rw-r--r-- | net/bridge/br_forward.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/bridge/br_forward.c b/net/bridge/br_forward.c index 6e97711fd2c5..cbfe87f0f34a 100644 --- a/net/bridge/br_forward.c +++ b/net/bridge/br_forward.c | |||
@@ -130,10 +130,10 @@ static int deliver_clone(const struct net_bridge_port *prev, | |||
130 | void (*__packet_hook)(const struct net_bridge_port *p, | 130 | void (*__packet_hook)(const struct net_bridge_port *p, |
131 | struct sk_buff *skb)) | 131 | struct sk_buff *skb)) |
132 | { | 132 | { |
133 | struct net_device *dev = BR_INPUT_SKB_CB(skb)->brdev; | ||
134 | |||
133 | skb = skb_clone(skb, GFP_ATOMIC); | 135 | skb = skb_clone(skb, GFP_ATOMIC); |
134 | if (!skb) { | 136 | if (!skb) { |
135 | struct net_device *dev = BR_INPUT_SKB_CB(skb)->brdev; | ||
136 | |||
137 | dev->stats.tx_dropped++; | 137 | dev->stats.tx_dropped++; |
138 | return -ENOMEM; | 138 | return -ENOMEM; |
139 | } | 139 | } |