]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: sun4i-emac: Fix an error handling path in emac_probe()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 15 Jan 2022 12:45:03 +0000 (13:45 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 15 Jan 2022 22:34:52 +0000 (22:34 +0000)
commitca471f973eb77b58b4364424f0430161455d5560
tree573bdba837571c0f4f07833025213be8b686c066
parent83118fcc807455b3fb073043a33d125b2f4329ff
net: ethernet: sun4i-emac: Fix an error handling path in emac_probe()

A dma_request_chan() call is hidden in emac_configure_dma().
It must be released in the probe if an error occurs, as already done in
the remove function.

Add the corresponding dma_release_channel() call.

Fixes: 062242f246eb ("sun4i-emac.c: add dma support")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/allwinner/sun4i-emac.c