Revision ef4ef49f5d92fe9050b065f7ead913c3ab502300 authored by Matthias Reichl on 23 February 2016, 16:28:23 UTC, committed by popcornmix on 26 February 2016, 14:51:41 UTC
If snd_soc_card.owner is not set the kernel won't do usage refcounting
and one can remove the card driver module while it's in use (eg playback
active) - which leads to a kernel crash.

The missing owner field also prevents ALSA slot ordering
(options snd slots=module-name1,module-name-2,...) from working with
the I2S cards as it has no module name to match against.

Fix these issues by setting the .owner field in the snd_soc_card structs.

Signed-off-by: Matthias Reichl <hias@horus.com>
1 parent cb5a6e2
History
File Mode Size
oss
seq
Kconfig -rw-r--r-- 6.2 KB
Makefile -rw-r--r-- 1.2 KB
compress_offload.c -rw-r--r-- 26.2 KB
control.c -rw-r--r-- 49.6 KB
control_compat.c -rw-r--r-- 11.5 KB
ctljack.c -rw-r--r-- 1.5 KB
device.c -rw-r--r-- 6.3 KB
hrtimer.c -rw-r--r-- 4.1 KB
hwdep.c -rw-r--r-- 13.2 KB
hwdep_compat.c -rw-r--r-- 2.3 KB
info.c -rw-r--r-- 22.7 KB
info_oss.c -rw-r--r-- 3.8 KB
init.c -rw-r--r-- 26.2 KB
isadma.c -rw-r--r-- 3.0 KB
jack.c -rw-r--r-- 6.6 KB
memalloc.c -rw-r--r-- 7.5 KB
memory.c -rw-r--r-- 2.5 KB
misc.c -rw-r--r-- 3.9 KB
pcm.c -rw-r--r-- 34.4 KB
pcm_compat.c -rw-r--r-- 16.2 KB
pcm_dmaengine.c -rw-r--r-- 11.2 KB
pcm_lib.c -rw-r--r-- 71.2 KB
pcm_memory.c -rw-r--r-- 13.5 KB
pcm_misc.c -rw-r--r-- 14.8 KB
pcm_native.c -rw-r--r-- 100.4 KB
pcm_timer.c -rw-r--r-- 3.7 KB
pcm_trace.h -rw-r--r-- 3.7 KB
rawmidi.c -rw-r--r-- 49.3 KB
rawmidi_compat.c -rw-r--r-- 3.5 KB
rtctimer.c -rw-r--r-- 4.1 KB
sgbuf.c -rw-r--r-- 4.2 KB
sound.c -rw-r--r-- 10.8 KB
sound_oss.c -rw-r--r-- 7.5 KB
timer.c -rw-r--r-- 53.2 KB
timer_compat.c -rw-r--r-- 3.5 KB
vmaster.c -rw-r--r-- 12.7 KB

back to top