diff options
author | Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> | 2013-03-19 14:40:23 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-03-20 17:17:59 +0100 |
commit | 0582b7d15f8a7ae53dd2128b8eb01567b3fd2277 (patch) | |
tree | 3573e1c8cbbff92617caaf914efa10c36e58cd6e /drivers/net/ethernet/renesas/sh_eth.h | |
parent | ipconfig: Fix newline handling in log message. (diff) | |
download | linux-0582b7d15f8a7ae53dd2128b8eb01567b3fd2277.tar.xz linux-0582b7d15f8a7ae53dd2128b8eb01567b3fd2277.zip |
sh_eth: fix bitbang memory leak
sh_mdio_init() allocates pointer to 'struct bb_info' but only stores it locally,
so that sh_mdio_release() can't free it on driver unload. Add the pointer to
'struct bb_info' to 'struct sh_eth_private', so that sh_mdio_init() can save
'bitbang' variable for sh_mdio_release() to be able to free it later...
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/renesas/sh_eth.h')
-rw-r--r-- | drivers/net/ethernet/renesas/sh_eth.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/renesas/sh_eth.h b/drivers/net/ethernet/renesas/sh_eth.h index bae84fd2e73a..e6655678458e 100644 --- a/drivers/net/ethernet/renesas/sh_eth.h +++ b/drivers/net/ethernet/renesas/sh_eth.h @@ -705,6 +705,7 @@ struct sh_eth_private { const u16 *reg_offset; void __iomem *addr; void __iomem *tsu_addr; + struct bb_info *bitbang; u32 num_rx_ring; u32 num_tx_ring; dma_addr_t rx_desc_dma; |