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)
commit4dc040a0b34890d2adc0d63da6e9bfb4eb791b19
tree751bd8191cca6d4a5119d04bc06362aa93a7c50d
parente5d6db8e6039d7f51a9a648d74db1109c7fdc746
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