linux/sound
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
..
aoa powerpc updates for 4.9 2016-10-07 20:19:31 -07:00
arm
atmel
core ALSA: info: Return error for invalid read/write 2016-11-08 14:37:26 +01:00
drivers
firewire
hda
i2c
isa
mips
oss
parisc
pci ALSA: hda - Fix surround output pins for ASRock B150M mobo 2016-10-25 10:09:39 +02:00
pcmcia
ppc powerpc updates for 4.9 2016-10-07 20:19:31 -07:00
sh
soc Merge remote-tracking branches 'asoc/fix/rt5663', 'asoc/fix/samsung', 'asoc/fix/sti', 'asoc/fix/sti-codec', 'asoc/fix/sunxi' and 'asoc/fix/tas571x' into asoc-linus 2016-11-04 12:33:56 -06:00
sparc
spi
synth
usb ALSA: usb-audio: Add quirk for Syntek STK1160 2016-10-27 12:07:19 +02:00
ac97_bus.c
Kconfig
last.c
Makefile
sound_core.c