android_kernel_samsung_msm8976/sound/core
Takashi Iwai 110be65e79 ALSA: timer: Remove kernel warning at compat ioctl error paths
commit 3d4e8303f2c747c8540a0a0126d0151514f6468b upstream.

Some timer compat ioctls have NULL checks of timer instance with
snd_BUG_ON() that bring up WARN_ON() when the debug option is set.
Actually the condition can be met in the normal situation and it's
confusing and bad to spew kernel warnings with stack trace there.
Let's remove snd_BUG_ON() invocation and replace with the simple
checks.  Also, correct the error code to EBADFD to follow the native
ioctl error handling.

Reported-by: syzbot <syzkaller@googlegroups.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
2019-07-27 21:46:05 +02:00
..
oss ALSA: pcm: Fix potential deadlock in OSS emulation 2016-02-19 14:22:39 -08:00
seq ALSA: seq: Make ioctls race-free 2019-07-27 21:45:59 +02:00
compress_offload.c This is the 3.10.97 stable release 2017-04-18 17:17:20 +02:00
control.c ALSA: core: Fix unexpected error at replacing user TLV 2019-07-27 21:44:40 +02:00
control_compat.c ALSA: ctl: Fix ioctls for X32 ABI 2016-03-09 15:31:55 -08:00
ctljack.c
device.c
hrtimer.c ALSA: timer: Limit max instances per timer 2019-07-27 21:45:43 +02:00
hwdep.c
hwdep_compat.c
info.c Merge tag 'LA.BR.1.3.6-03510-8976.0' into HEAD 2017-04-18 12:11:50 +02:00
info_oss.c
init.c
isadma.c
jack.c
Kconfig
Makefile
memalloc.c
memory.c
misc.c
pcm.c Merge tag 'LA.BR.1.3.6-05410-8976.0' of https://source.codeaurora.org/quic/la/kernel/msm-3.10 into HEAD 2018-02-06 13:11:45 +01:00
pcm_compat.c This is the 3.10.96 stable release 2017-04-18 17:16:02 +02:00
pcm_lib.c ALSA: pcm: remove SNDRV_PCM_IOCTL1_INFO internal command 2018-01-21 21:25:33 -08:00
pcm_memory.c
pcm_misc.c
pcm_native.c ALSA: pcm: remove unused variable from snd_pcm_info() 2018-01-21 21:26:13 -08:00
pcm_timer.c ALSA: pcm: use lock to protect substream runtime resource 2018-01-21 21:32:44 -08:00
rawmidi.c ALSA: rawmidi: Fix possible deadlock with virmidi registration 2019-07-27 21:42:17 +02:00
rawmidi_compat.c ALSA: rawmidi: Fix ioctls X32 ABI 2016-03-09 15:31:55 -08:00
rtctimer.c
sgbuf.c
sound.c
sound_oss.c
timer.c ALSA: timer: Limit max instances per timer 2019-07-27 21:45:43 +02:00
timer_compat.c ALSA: timer: Remove kernel warning at compat ioctl error paths 2019-07-27 21:46:05 +02:00
vmaster.c