summaryrefslogtreecommitdiffstats
path: root/drivers/staging/solo6x10
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2010-08-10 08:09:05 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2010-08-31 14:51:53 -0700
commit6a4ca0399255260bb04fa4e718625ede0c745e59 (patch)
tree1cc2ade02b241a508820e82c03bd1c20190b0690 /drivers/staging/solo6x10
parentc7e62defd3c4a015b1f80a642bc320b9f9f3896c (diff)
Staging: solo6x10: return -EFAULT on copy_to_user errors
copy_to_user() returns the number of bytes remaining to be copied, but we want to return a negative error code here. Signed-off-by: Dan Carpenter <error27@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/solo6x10')
-rw-r--r--drivers/staging/solo6x10/solo6010-g723.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/solo6x10/solo6010-g723.c b/drivers/staging/solo6x10/solo6010-g723.c
index e82846c1d6c..82fbcb84587 100644
--- a/drivers/staging/solo6x10/solo6010-g723.c
+++ b/drivers/staging/solo6x10/solo6010-g723.c
@@ -233,7 +233,7 @@ static int snd_solo_pcm_copy(struct snd_pcm_substream *ss, int channel,
solo_pcm->g723_buf, G723_PERIOD_BYTES);
if (err)
- return err;
+ return -EFAULT;
}
return 0;