diff options
author | Claudiu Beznea <claudiu.beznea@microchip.com> | 2020-06-24 13:08:18 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-06-25 15:59:23 -0700 |
commit | 33fdef24c9ac20c68b71b363e423fbf9ad2bfc1e (patch) | |
tree | 684f309ddf5e29b8a933a79a4d7dd80c55833e53 /drivers/i2c | |
parent | 0eaf228d574bd82a9aed73e3953bfb81721f4227 (diff) |
net: macb: free resources on failure path of at91ether_open()
DMA buffers were not freed on failure path of at91ether_open().
Along with changes for freeing the DMA buffers the enable/disable
interrupt instructions were moved to at91ether_start()/at91ether_stop()
functions and the operations on at91ether_stop() were done in
their reverse order (compared with how is done in at91ether_start()):
before this patch the operation order on interface open path
was as follows:
1/ alloc DMA buffers
2/ enable tx, rx
3/ enable interrupts
and the order on interface close path was as follows:
1/ disable tx, rx
2/ disable interrupts
3/ free dma buffers.
Fixes: 7897b071ac3b ("net: macb: convert to phylink")
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/i2c')
0 files changed, 0 insertions, 0 deletions