Revision 0a18d802d65cf662644fd1d369c86d84a5630652 authored by Jianglei Nie on 29 June 2022, 07:55:50 UTC, committed by Paolo Abeni on 30 June 2022, 09:38:16 UTC
sfp_probe() allocates a memory chunk from sfp with sfp_alloc(). When devm_add_action() fails, sfp is not freed, which leads to a memory leak. We should use devm_add_action_or_reset() instead of devm_add_action(). Signed-off-by: Jianglei Nie <niejianglei2021@163.com> Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk> Link: https://lore.kernel.org/r/20220629075550.2152003-1-niejianglei2021@163.com Signed-off-by: Paolo Abeni <pabeni@redhat.com>
1 parent 665030f
File | Mode | Size |
---|---|---|
Kconfig | -rw-r--r-- | 814 bytes |
Makefile | -rw-r--r-- | 371 bytes |
aaci.c | -rw-r--r-- | 24.4 KB |
aaci.h | -rw-r--r-- | 6.8 KB |
pxa2xx-ac97-lib.c | -rw-r--r-- | 11.0 KB |
pxa2xx-ac97-regs.h | -rw-r--r-- | 4.3 KB |
pxa2xx-ac97.c | -rw-r--r-- | 6.6 KB |
pxa2xx-pcm-lib.c | -rw-r--r-- | 5.1 KB |
Computing file changes ...