]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite7bd73ab33f7a8c03715a46b43b394e93a5b288f
treec6608f81614d5f8e8fecb0bd7577890dc6c475a7
parent857a509b2678f3864dc239646cda3852a5d6d51f
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