Revision 02d88b735f5a60f04dbf6d051b76e1877a0d0844 authored by Peter Ujfalusi on 27 March 2015, 11:35:52 UTC, committed by Vinod Koul on 30 March 2015, 17:47:08 UTC
In omap_dma_start_desc the vdesc->node is removed from the virt-dma framework managed lists (to be precise from the desc_issued list). If a terminate_all comes before the transfer finishes the omap_desc will not be freed up because it is not in any of the lists and we stopped the DMA channel so the transfer will not going to complete. There is no special sequence for leaking memory when using cyclic (audio) transfer: with every start and stop of a cyclic transfer the driver leaks struct omap_desc worth of memory. Free up the allocated memory directly in omap_dma_terminate_all() since the framework will not going to do that for us. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> CC: <stable@vger.kernel.org> CC: <linux-omap@vger.kernel.org> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
1 parent 5ca9e7c
File | Mode | Size |
---|---|---|
bpf | ||
configs | ||
debug | ||
events | ||
gcov | ||
irq | ||
livepatch | ||
locking | ||
power | ||
printk | ||
rcu | ||
sched | ||
time | ||
trace | ||
.gitignore | -rw-r--r-- | 91 bytes |
Kconfig.freezer | -rw-r--r-- | 52 bytes |
Kconfig.hz | -rw-r--r-- | 1.6 KB |
Kconfig.locks | -rw-r--r-- | 4.7 KB |
Kconfig.preempt | -rw-r--r-- | 2.1 KB |
Makefile | -rw-r--r-- | 7.3 KB |
acct.c | -rw-r--r-- | 15.4 KB |
async.c | -rw-r--r-- | 9.9 KB |
audit.c | -rw-r--r-- | 52.5 KB |
audit.h | -rw-r--r-- | 9.9 KB |
audit_tree.c | -rw-r--r-- | 22.0 KB |
audit_watch.c | -rw-r--r-- | 13.6 KB |
auditfilter.c | -rw-r--r-- | 33.7 KB |
auditsc.c | -rw-r--r-- | 64.2 KB |
backtracetest.c | -rw-r--r-- | 2.1 KB |
bounds.c | -rw-r--r-- | 703 bytes |
capability.c | -rw-r--r-- | 12.0 KB |
cgroup.c | -rw-r--r-- | 150.0 KB |
cgroup_freezer.c | -rw-r--r-- | 12.5 KB |
compat.c | -rw-r--r-- | 29.4 KB |
configs.c | -rw-r--r-- | 2.8 KB |
context_tracking.c | -rw-r--r-- | 5.7 KB |
cpu.c | -rw-r--r-- | 19.2 KB |
cpu_pm.c | -rw-r--r-- | 6.5 KB |
cpuset.c | -rw-r--r-- | 75.3 KB |
crash_dump.c | -rw-r--r-- | 1.3 KB |
cred.c | -rw-r--r-- | 21.2 KB |
delayacct.c | -rw-r--r-- | 4.5 KB |
dma.c | -rw-r--r-- | 3.6 KB |
elfcore.c | -rw-r--r-- | 396 bytes |
exec_domain.c | -rw-r--r-- | 4.3 KB |
exit.c | -rw-r--r-- | 41.5 KB |
extable.c | -rw-r--r-- | 4.0 KB |
fork.c | -rw-r--r-- | 47.9 KB |
freezer.c | -rw-r--r-- | 4.4 KB |
futex.c | -rw-r--r-- | 81.6 KB |
futex_compat.c | -rw-r--r-- | 4.5 KB |
groups.c | -rw-r--r-- | 6.0 KB |
hung_task.c | -rw-r--r-- | 5.7 KB |
irq_work.c | -rw-r--r-- | 4.5 KB |
jump_label.c | -rw-r--r-- | 11.0 KB |
kallsyms.c | -rw-r--r-- | 14.9 KB |
kcmp.c | -rw-r--r-- | 4.3 KB |
kexec.c | -rw-r--r-- | 67.7 KB |
kmod.c | -rw-r--r-- | 18.5 KB |
kprobes.c | -rw-r--r-- | 60.7 KB |
ksysfs.c | -rw-r--r-- | 5.6 KB |
kthread.c | -rw-r--r-- | 18.6 KB |
latencytop.c | -rw-r--r-- | 7.6 KB |
module-internal.h | -rw-r--r-- | 458 bytes |
module.c | -rw-r--r-- | 97.9 KB |
module_signing.c | -rw-r--r-- | 5.9 KB |
notifier.c | -rw-r--r-- | 16.2 KB |
nsproxy.c | -rw-r--r-- | 6.0 KB |
padata.c | -rw-r--r-- | 26.8 KB |
panic.c | -rw-r--r-- | 12.5 KB |
params.c | -rw-r--r-- | 22.6 KB |
pid.c | -rw-r--r-- | 14.9 KB |
pid_namespace.c | -rw-r--r-- | 10.0 KB |
profile.c | -rw-r--r-- | 16.1 KB |
ptrace.c | -rw-r--r-- | 29.4 KB |
range.c | -rw-r--r-- | 3.0 KB |
reboot.c | -rw-r--r-- | 12.5 KB |
relay.c | -rw-r--r-- | 32.6 KB |
resource.c | -rw-r--r-- | 37.2 KB |
seccomp.c | -rw-r--r-- | 24.0 KB |
signal.c | -rw-r--r-- | 95.4 KB |
smp.c | -rw-r--r-- | 19.4 KB |
smpboot.c | -rw-r--r-- | 7.0 KB |
smpboot.h | -rw-r--r-- | 564 bytes |
softirq.c | -rw-r--r-- | 18.9 KB |
stacktrace.c | -rw-r--r-- | 1.7 KB |
stop_machine.c | -rw-r--r-- | 17.2 KB |
sys.c | -rw-r--r-- | 56.6 KB |
sys_ni.c | -rw-r--r-- | 6.5 KB |
sysctl.c | -rw-r--r-- | 62.6 KB |
sysctl_binary.c | -rw-r--r-- | 51.0 KB |
system_certificates.S | -rw-r--r-- | 470 bytes |
system_keyring.c | -rw-r--r-- | 2.8 KB |
task_work.c | -rw-r--r-- | 3.4 KB |
taskstats.c | -rw-r--r-- | 16.1 KB |
test_kprobes.c | -rw-r--r-- | 7.4 KB |
torture.c | -rw-r--r-- | 19.9 KB |
tracepoint.c | -rw-r--r-- | 13.3 KB |
tsacct.c | -rw-r--r-- | 4.9 KB |
uid16.c | -rw-r--r-- | 5.0 KB |
up.c | -rw-r--r-- | 1.7 KB |
user-return-notifier.c | -rw-r--r-- | 1.3 KB |
user.c | -rw-r--r-- | 5.4 KB |
user_namespace.c | -rw-r--r-- | 25.5 KB |
utsname.c | -rw-r--r-- | 3.0 KB |
utsname_sysctl.c | -rw-r--r-- | 3.0 KB |
watchdog.c | -rw-r--r-- | 18.9 KB |
workqueue.c | -rw-r--r-- | 137.3 KB |
workqueue_internal.h | -rw-r--r-- | 2.2 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...