]> 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)
commit11630c2eddca8636e8053465cfc52d1cefc92c25
treec6608f81614d5f8e8fecb0bd7577890dc6c475a7
parent9693b2e5d83e70832be43d8ab517559c2f326f45
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