ALSA: compress: fix the return value for SNDRV_COMPRESS_VERSION
authorVinod Koul <vinod.koul@intel.com>
Mon, 29 Jul 2013 09:40:22 +0000 (15:10 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 12 Aug 2013 01:35:21 +0000 (18:35 -0700)
commitd54d012b636fe58770c4a58eda41de13fac40a0e
tree01d6e8cf2169a74876d19342c323bf07050c10c0
parentc6bffb8ffe2b9e42b09f4960cc623cecf2e9d778
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