ALSA: info - Check file position validity in common layer
authorTakashi Iwai <tiwai@suse.de>
Tue, 13 Apr 2010 09:33:54 +0000 (11:33 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 13 Apr 2010 10:01:14 +0000 (12:01 +0200)
commitd97e1b78239c7e7e441088e0b644bd3b076002e6
treeb05b5085bea932662ce60061d5b4b93834683327
parent24e4a1211f691fc671de44685430dbad757d8487
ALSA: info - Check file position validity in common layer

Check the validity of the file position in the common info layer before
calling read or write callbacks in assumption that entry->size is set up
properly to indicate the max file size.

Removed the redundant checks from the callbacks as well.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/info.c
sound/drivers/opl4/opl4_proc.c
sound/isa/gus/gus_mem_proc.c
sound/pci/cs4281.c
sound/pci/cs46xx/cs46xx_lib.c
sound/pci/emu10k1/emuproc.c
sound/pci/mixart/mixart.c