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)
commitbb77bd31c281f70ec77c9c4f584950a779e05cf8
tree89e969bdb87896f5f2f67c0223ab378eee8a96cd
parentdd830aed23c6e07cd8e2a163742bf3d63c9add08
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