Revision 0f7ba7bc46fa0b574ccacf5672991b321e028492 authored by Christophe JAILLET on 03 January 2021, 00:26:26 UTC, committed by David S. Miller on 05 January 2021, 23:59:20 UTC
A call to dma_alloc_coherent() is wrapped by sonic_alloc_descriptors().

This is correctly freed in the remove function, but not in the error
handling path of the probe function. Fix this by adding the missing
dma_free_coherent() call.

While at it, rename a label in order to be slightly more informative.

Cc: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Cc: Chris Zankel <chris@zankel.net>
References: commit 10e3cc180e64 ("net/sonic: Fix a resource leak in an error handling path in 'jazz_sonic_probe()'")
Fixes: 74f2a5f0ef64 ("xtensa: Add support for the Sonic Ethernet device for the XT2000 board.")
Fixes: efcce839360f ("[PATCH] macsonic/jazzsonic network drivers update")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 69931e1
History
File Mode Size
Kconfig -rw-r--r-- 3.2 KB
Makefile -rw-r--r-- 484 bytes
auth.c -rw-r--r-- 13.5 KB
budget.c -rw-r--r-- 23.3 KB
commit.c -rw-r--r-- 19.9 KB
compress.c -rw-r--r-- 6.6 KB
crypto.c -rw-r--r-- 2.4 KB
debug.c -rw-r--r-- 82.3 KB
debug.h -rw-r--r-- 11.8 KB
dir.c -rw-r--r-- 41.9 KB
file.c -rw-r--r-- 46.3 KB
find.c -rw-r--r-- 29.4 KB
gc.c -rw-r--r-- 27.9 KB
io.c -rw-r--r-- 35.5 KB
ioctl.c -rw-r--r-- 6.3 KB
journal.c -rw-r--r-- 52.1 KB
key.h -rw-r--r-- 14.3 KB
log.c -rw-r--r-- 19.2 KB
lprops.c -rw-r--r-- 35.4 KB
lpt.c -rw-r--r-- 61.7 KB
lpt_commit.c -rw-r--r-- 50.5 KB
master.c -rw-r--r-- 12.3 KB
misc.c -rw-r--r-- 1.3 KB
misc.h -rw-r--r-- 7.7 KB
orphan.c -rw-r--r-- 26.2 KB
recovery.c -rw-r--r-- 43.1 KB
replay.c -rw-r--r-- 33.4 KB
sb.c -rw-r--r-- 26.3 KB
scan.c -rw-r--r-- 8.9 KB
shrinker.c -rw-r--r-- 9.0 KB
super.c -rw-r--r-- 64.1 KB
tnc.c -rw-r--r-- 91.7 KB
tnc_commit.c -rw-r--r-- 27.7 KB
tnc_misc.c -rw-r--r-- 12.7 KB
ubifs-media.h -rw-r--r-- 24.8 KB
ubifs.h -rw-r--r-- 70.8 KB
xattr.c -rw-r--r-- 18.8 KB

back to top