WSL2-Linux-Kernel/sound/core
Takashi Iwai 6809cd682b ALSA: info: Return error for invalid read/write
Currently the ALSA proc handler allows read or write even if the proc
file were write-only or read-only.  It's mostly harmless, does thing
but allocating memory and ignores the input/output.  But it doesn't
tell user about the invalid use, and it's confusing and inconsistent
in comparison with other proc files.

This patch adds some sanity checks and let the proc handler returning
an -EIO error when the invalid read/write is performed.

Cc: <stable@vger.kernel.org> # v4.2+
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2016-11-08 14:37:26 +01:00
..
oss
seq ALSA: seq: Fix time account regression 2016-10-25 16:00:46 +02:00
Kconfig
Makefile
compress_offload.c ALSA: compress: fix some missing and misplaced \n in messages 2016-09-16 19:24:13 +02:00
control.c
control_compat.c
ctljack.c
device.c
hrtimer.c
hwdep.c
hwdep_compat.c
info.c ALSA: info: Return error for invalid read/write 2016-11-08 14:37:26 +01:00
info_oss.c
init.c
isadma.c
jack.c
memalloc.c
memory.c
misc.c
pcm.c
pcm_compat.c
pcm_dmaengine.c
pcm_drm_eld.c
pcm_iec958.c
pcm_lib.c
pcm_memory.c
pcm_misc.c
pcm_native.c ALSA: pcm: Fix avail to return error if stream is suspended 2016-09-06 12:10:29 +02:00
pcm_timer.c
pcm_trace.h
rawmidi.c ALSA: rawmidi: Fix possible deadlock with virmidi registration 2016-09-08 10:45:20 +02:00
rawmidi_compat.c
sgbuf.c
sound.c
sound_oss.c
timer.c ALSA: timer: Fix zero-division by continue of uninitialized instance 2016-09-08 10:45:05 +02:00
timer_compat.c
vmaster.c