]> git.baikalelectronics.ru Git - kernel.git/commit
gianfar: Fix packet drop when out of memory
authorAndy Fleming <afleming@freescale.com>
Thu, 18 Dec 2008 00:50:22 +0000 (16:50 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Dec 2008 00:50:22 +0000 (16:50 -0800)
commitc93e952306e5a5e59521e048b23960d3cccca52e
treed39f493014cc3c3959617ef78d003a72668c5cbe
parent74a20a994d49d9fbfeca8815888bb30c098dba46
gianfar: Fix packet drop when out of memory

The patch which fixed gianfar so it drops packets when it runs out
of memory left in the code which frees the skb when it drops packets.
Change the code so that we only free the skb if the new skb was successfully
created.

Signed-off-by: Andy Fleming <afleming@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/gianfar.c