summaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo2007-03-20 16:00:44 +0100
committerDavid S. Miller2007-04-26 07:26:40 +0200
commitd004b8d4903180c111e114726982c194adf2a04f (patch)
tree163c75e52b8f119dd27b3dcf1825636a48895e2f /drivers/net
parent[ATM] idt77252: Fix double kfree_skb on failure in push_rx_skb (diff)
downloadkernel-qcow2-linux-d004b8d4903180c111e114726982c194adf2a04f.tar.gz
kernel-qcow2-linux-d004b8d4903180c111e114726982c194adf2a04f.tar.xz
kernel-qcow2-linux-d004b8d4903180c111e114726982c194adf2a04f.zip
[LMC]: lmc_main wants to use skb_tailroom
At that point it is equivalent to what was being used, skb->end - skb->data, and the need is clearly the one skb_tailroom satisfies. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wan/lmc/lmc_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wan/lmc/lmc_main.c b/drivers/net/wan/lmc/lmc_main.c
index 5bb18c0955bc..a576113abbd9 100644
--- a/drivers/net/wan/lmc/lmc_main.c
+++ b/drivers/net/wan/lmc/lmc_main.c
@@ -1932,7 +1932,7 @@ static void lmc_softreset (lmc_softc_t * const sc) /*fold00*/
sc->lmc_rxring[i].status = 0x80000000;
/* used to be PKT_BUF_SZ now uses skb since we lose some to head room */
- sc->lmc_rxring[i].length = skb_end_pointer(skb) - skb->data;
+ sc->lmc_rxring[i].length = skb_tailroom(skb);
/* use to be tail which is dumb since you're thinking why write
* to the end of the packj,et but since there's nothing there tail == data