A call to 'dma_alloc_coherent()' is hidden in 'sonic_alloc_descriptors()',
called from 'sonic_probe1()'.
This is correctly freed in the remove function, but not in the error
handling path of the probe function.
Fix it and add the missing 'dma_free_coherent()' call.
While at it, rename a label in order to be slightly more informative.
Fixes:
|
||
|---|---|---|
| .. | ||
| jazzsonic.c | ||
| Kconfig | ||
| macsonic.c | ||
| Makefile | ||
| natsemi.c | ||
| ns83820.c | ||
| sonic.c | ||
| sonic.h | ||
| xtsonic.c | ||