Skip to content

Commit 3ea89fa

Browse files
committed
Merge branch 'dsa-headroom'
Per Forlin says: ==================== net: dsa: Make sure there is headroom for tag Sorry for re-posting yet another time.... I manage to include multiple email-senders and forgot to include cover-letter. Let's hope everyhthing is in order this time. Fix two tag drivers to make sure there is headroom for the tag data. ==================== Signed-off-by: David S. Miller <[email protected]>
2 parents 5fdcce2 + ddc9aba commit 3ea89fa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

net/dsa/tag_ar9331.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ static struct sk_buff *ar9331_tag_xmit(struct sk_buff *skb,
3131
__le16 *phdr;
3232
u16 hdr;
3333

34-
if (skb_cow_head(skb, 0) < 0)
34+
if (skb_cow_head(skb, AR9331_HDR_LEN) < 0)
3535
return NULL;
3636

3737
phdr = skb_push(skb, AR9331_HDR_LEN);

net/dsa/tag_qca.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ static struct sk_buff *qca_tag_xmit(struct sk_buff *skb, struct net_device *dev)
3333
struct dsa_port *dp = dsa_slave_to_port(dev);
3434
u16 *phdr, hdr;
3535

36-
if (skb_cow_head(skb, 0) < 0)
36+
if (skb_cow_head(skb, QCA_HDR_LEN) < 0)
3737
return NULL;
3838

3939
skb_push(skb, QCA_HDR_LEN);

0 commit comments

Comments
 (0)