]> git.baikalelectronics.ru Git - kernel.git/commit
ethernet: sun: Free the coherent when failing in probing
authorZheyu Ma <zheyuma97@gmail.com>
Sat, 5 Mar 2022 14:55:04 +0000 (14:55 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Mar 2022 11:32:22 +0000 (11:32 +0000)
commit3d442b697db66c991546a659a5c63981a9fb7a68
tree89e969bdb87896f5f2f67c0223ab378eee8a96cd
parent3dd3986cb463188be7db169f56912a35fc93d05f
ethernet: sun: Free the coherent when failing in probing

When the driver fails to register net device, it should free the DMA
region first, and then do other cleanup.

Signed-off-by: Zheyu Ma <zheyuma97@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sun/sunhme.c