net:stmmac: fix memleak in the open method
authorGiuseppe CAVALLARO <peppe.cavallaro@st.com>
Thu, 4 Jul 2013 04:18:07 +0000 (06:18 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 4 Jul 2013 21:34:16 +0000 (14:34 -0700)
commitc9324d1870f3a7d13297ae6b787c567606ab3c89
treec6608f81614d5f8e8fecb0bd7577890dc6c475a7
parent3630d40067a21d4dfbadc6002bb469ce26ac5d52
net:stmmac: fix memleak in the open method

This patch is to fix a memory leak in the open method, it reviews error
conditions freeing the resources previously allocated and not freed in
cased of DMA failure.

Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c