ALSA: compress: fix the return value for SNDRV_COMPRESS_VERSION
authorVinod Koul <vinod.koul@intel.com>
Mon, 29 Jul 2013 09:40:22 +0000 (14:40 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 11 Aug 2013 22:38:41 +0000 (15:38 -0700)
commit353f59cac39bdcf4f5100fae723780d4f24a4a2f
tree6e88c353a4a7efd6d17513457c2688aa131c7a1e
parent7b17c57914788c370756ddc7ed8ca1b43394ef0f
ALSA: compress: fix the return value for SNDRV_COMPRESS_VERSION

commit a8d30608eaed6cc759b8e2e8a8bbbb42591f797f upstream.

the return value of SNDRV_COMPRESS_VERSION always return default -ENOTTY as the
return value was never updated for this call
assign return value from put_user()

Reported-by: Haynes <hgeorge@codeaurora.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/core/compress_offload.c