diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2014-08-21 10:26:29 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-09-03 09:32:02 -0400 |
commit | 38b2b8794d0ae7e086199e6077d2f234a3b69ab8 (patch) | |
tree | 1883a38d3088064684bcbf822cec80510aa2ff20 | |
parent | a7547af7d295bae3853accde5c746159b3e0e9de (diff) |
[media] cx25821: fix sparse warning
drivers/media/pci/cx25821/cx25821-video-upstream.c:334:25: warning: incorrect type in argument 2 (different address spaces)
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
-rw-r--r-- | drivers/media/pci/cx25821/cx25821-video-upstream.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/media/pci/cx25821/cx25821-video-upstream.c b/drivers/media/pci/cx25821/cx25821-video-upstream.c index 1f43be0b04c8..a664997e1958 100644 --- a/drivers/media/pci/cx25821/cx25821-video-upstream.c +++ b/drivers/media/pci/cx25821/cx25821-video-upstream.c | |||
@@ -330,8 +330,9 @@ int cx25821_write_frame(struct cx25821_channel *chan, | |||
330 | 330 | ||
331 | if (frame_size - curpos < count) | 331 | if (frame_size - curpos < count) |
332 | count = frame_size - curpos; | 332 | count = frame_size - curpos; |
333 | memcpy((char *)out->_data_buf_virt_addr + frame_offset + curpos, | 333 | if (copy_from_user((__force char *)out->_data_buf_virt_addr + frame_offset + curpos, |
334 | data, count); | 334 | data, count)) |
335 | return -EFAULT; | ||
335 | curpos += count; | 336 | curpos += count; |
336 | if (curpos == frame_size) { | 337 | if (curpos == frame_size) { |
337 | out->_frame_count++; | 338 | out->_frame_count++; |