]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: compress - move the buffer check
authorVinod Koul <vinod.koul@linux.intel.com>
Mon, 17 Sep 2012 06:21:25 +0000 (11:51 +0530)
committerTakashi Iwai <tiwai@suse.de>
Mon, 17 Sep 2012 07:54:41 +0000 (09:54 +0200)
commit3d8733c35e2444c27371c0d05ee11d7b29584bc9
tree751bd8191cca6d4a5119d04bc06362aa93a7c50d
parentb90e5c9e0f096d009c0e880b3a2349ff865965b8
ALSA: compress - move the buffer check

Commit ALSA: compress_core: integer overflow in snd_compr_allocate_buffer()
added a new error check for input params.
this add new routine for input checks and moves buffer overflow check to this
new routine. This allows the error value to be propogated to user space

Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/compress_offload.c