diff options
-rw-r--r-- | drivers/net/ethernet/atheros/atl1c/atl1c_main.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/net/ethernet/atheros/atl1c/atl1c_main.c b/drivers/net/ethernet/atheros/atl1c/atl1c_main.c index 31f262302128..e11bf18fbbd1 100644 --- a/drivers/net/ethernet/atheros/atl1c/atl1c_main.c +++ b/drivers/net/ethernet/atheros/atl1c/atl1c_main.c | |||
@@ -1973,17 +1973,17 @@ static int atl1c_tso_csum(struct atl1c_adapter *adapter, | |||
1973 | enum atl1c_trans_queue type) | 1973 | enum atl1c_trans_queue type) |
1974 | { | 1974 | { |
1975 | struct pci_dev *pdev = adapter->pdev; | 1975 | struct pci_dev *pdev = adapter->pdev; |
1976 | unsigned short offload_type; | ||
1976 | u8 hdr_len; | 1977 | u8 hdr_len; |
1977 | u32 real_len; | 1978 | u32 real_len; |
1978 | unsigned short offload_type; | ||
1979 | int err; | ||
1980 | 1979 | ||
1981 | if (skb_is_gso(skb)) { | 1980 | if (skb_is_gso(skb)) { |
1982 | if (skb_header_cloned(skb)) { | 1981 | int err; |
1983 | err = pskb_expand_head(skb, 0, 0, GFP_ATOMIC); | 1982 | |
1984 | if (unlikely(err)) | 1983 | err = skb_cow_head(skb, 0); |
1985 | return -1; | 1984 | if (err < 0) |
1986 | } | 1985 | return err; |
1986 | |||
1987 | offload_type = skb_shinfo(skb)->gso_type; | 1987 | offload_type = skb_shinfo(skb)->gso_type; |
1988 | 1988 | ||
1989 | if (offload_type & SKB_GSO_TCPV4) { | 1989 | if (offload_type & SKB_GSO_TCPV4) { |