Commit 443bdfed authored by Jean-Paul Saman's avatar Jean-Paul Saman

davinci-audio: mark user buffer

parent b843b0d6
...@@ -588,9 +588,9 @@ audio_write(struct file *file, const char *buffer, size_t count, loff_t * ppos) ...@@ -588,9 +588,9 @@ audio_write(struct file *file, const char *buffer, size_t count, loff_t * ppos)
* *
******************************************************************************/ ******************************************************************************/
static int static int
audio_read(struct file *file, char *buffer, size_t count, loff_t * ppos) audio_read(struct file *file, char __user *buffer, size_t count, loff_t * ppos)
{ {
char *buffer0 = buffer; char __user *buffer0 = buffer;
audio_state_t *state = file->private_data; audio_state_t *state = file->private_data;
audio_stream_t *s = state->input_stream; audio_stream_t *s = state->input_stream;
int chunksize, ret = 0; int chunksize, ret = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment