mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-28 12:25:31 +00:00
[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>
This commit is contained in:
parent
a7547af7d2
commit
38b2b8794d
@ -330,8 +330,9 @@ int cx25821_write_frame(struct cx25821_channel *chan,
|
|||||||
|
|
||||||
if (frame_size - curpos < count)
|
if (frame_size - curpos < count)
|
||||||
count = frame_size - curpos;
|
count = frame_size - curpos;
|
||||||
memcpy((char *)out->_data_buf_virt_addr + frame_offset + curpos,
|
if (copy_from_user((__force char *)out->_data_buf_virt_addr + frame_offset + curpos,
|
||||||
data, count);
|
data, count))
|
||||||
|
return -EFAULT;
|
||||||
curpos += count;
|
curpos += count;
|
||||||
if (curpos == frame_size) {
|
if (curpos == frame_size) {
|
||||||
out->_frame_count++;
|
out->_frame_count++;
|
||||||
|
Loading…
Reference in New Issue
Block a user