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-- 1.5 KB
Makefile -rw-r--r-- 486 bytes
acl.c -rw-r--r-- 3.1 KB
file.c -rw-r--r-- 3.7 KB
inode.c -rw-r--r-- 9.7 KB
ioctl.c -rw-r--r-- 3.8 KB
jfs_acl.h -rw-r--r-- 525 bytes
jfs_btree.h -rw-r--r-- 3.3 KB
jfs_debug.c -rw-r--r-- 1.9 KB
jfs_debug.h -rw-r--r-- 2.7 KB
jfs_dinode.h -rw-r--r-- 5.1 KB
jfs_discard.c -rw-r--r-- 2.4 KB
jfs_discard.h -rw-r--r-- 337 bytes
jfs_dmap.c -rw-r--r-- 110.9 KB
jfs_dmap.h -rw-r--r-- 10.5 KB
jfs_dtree.c -rw-r--r-- 99.8 KB
jfs_dtree.h -rw-r--r-- 5.9 KB
jfs_extent.c -rw-r--r-- 16.6 KB
jfs_extent.h -rw-r--r-- 615 bytes
jfs_filsys.h -rw-r--r-- 8.2 KB
jfs_imap.c -rw-r--r-- 83.2 KB
jfs_imap.h -rw-r--r-- 5.8 KB
jfs_incore.h -rw-r--r-- 6.8 KB
jfs_inode.c -rw-r--r-- 2.8 KB
jfs_inode.h -rw-r--r-- 1.8 KB
jfs_lock.h -rw-r--r-- 883 bytes
jfs_logmgr.c -rw-r--r-- 58.2 KB
jfs_logmgr.h -rw-r--r-- 14.0 KB
jfs_metapage.c -rw-r--r-- 18.5 KB
jfs_metapage.h -rw-r--r-- 3.5 KB
jfs_mount.c -rw-r--r-- 12.0 KB
jfs_superblock.h -rw-r--r-- 3.4 KB
jfs_txnmgr.c -rw-r--r-- 73.8 KB
jfs_txnmgr.h -rw-r--r-- 7.6 KB
jfs_types.h -rw-r--r-- 3.6 KB
jfs_umount.c -rw-r--r-- 3.3 KB
jfs_unicode.c -rw-r--r-- 2.6 KB
jfs_unicode.h -rw-r--r-- 3.1 KB
jfs_uniupr.c -rw-r--r-- 6.8 KB
jfs_xattr.h -rw-r--r-- 1.8 KB
jfs_xtree.c -rw-r--r-- 91.1 KB
jfs_xtree.h -rw-r--r-- 3.1 KB
namei.c -rw-r--r-- 36.5 KB
resize.c -rw-r--r-- 14.1 KB
super.c -rw-r--r-- 23.6 KB
symlink.c -rw-r--r-- 499 bytes
xattr.c -rw-r--r-- 25.1 KB

back to top