linux/drivers/net/ethernet/freescale
Eric Dumazet 313b037cf0 gianfar: fix potential sk_wmem_alloc imbalance
commit db83d136d7 (gianfar: Fix missing sock reference when
processing TX time stamps) added a potential sk_wmem_alloc imbalance

If the new skb has a different truesize than old one, we can get a
negative sk_wmem_alloc once new skb is orphaned at TX completion.

Now we no longer early orphan skbs in dev_hard_start_xmit(), this
probably can lead to fatal bugs.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Tested-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Cc: Manfred Rudigier <manfred.rudigier@omicron.at>
Cc: Claudiu Manoil <claudiu.manoil@freescale.com>
Cc: Jiajun Wu <b06378@freescale.com>
Cc: Andy Fleming <afleming@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2012-07-09 15:28:03 -07:00
..
fs_enet fs_enet: Support the get_ts_info ethtool method. 2012-04-04 05:28:47 -04:00
Kconfig Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2012-01-04 21:35:43 -05:00
Makefile
fec.c arm-soc: clock driver changes 2012-05-26 12:42:29 -07:00
fec.h net: fsl: fec: handle 10Mbps speed in RMII mode 2012-01-12 20:05:28 -08:00
fec_mpc52xx.c fec_mpc52xx: fix timestamp filtering 2012-06-02 17:09:08 -04:00
fec_mpc52xx.h drivers/net: fix up stale paths from driver reorg 2012-01-30 12:54:40 -05:00
fec_mpc52xx_phy.c
fsl_pq_mdio.c Fix non TBI PHY access; a bad merge undid bug fix in a previous commit. 2012-04-01 16:47:12 -04:00
fsl_pq_mdio.h
gianfar.c gianfar: fix potential sk_wmem_alloc imbalance 2012-07-09 15:28:03 -07:00
gianfar.h gianfar: Support the get_ts_info ethtool method. 2012-04-04 05:28:45 -04:00
gianfar_ethtool.c gianfar: Include linux/net_tstamp.h 2012-04-06 00:35:34 -04:00
gianfar_ptp.c gianfar: Support the get_ts_info ethtool method. 2012-04-04 05:28:45 -04:00
gianfar_sysfs.c drivers/net: fix up stale paths from driver reorg 2012-01-30 12:54:40 -05:00
ucc_geth.c ucc_geth: Add 16 bytes to max TX frame for VLANs 2012-05-02 20:09:04 -04:00
ucc_geth.h net: ucc_geth, increase no. of HW RX descriptors 2012-05-02 20:09:04 -04:00
ucc_geth_ethtool.c ucc_geth: Support the get_ts_info ethtool method. 2012-04-04 05:28:48 -04:00