aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/cx25821
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/cx25821')
-rw-r--r--drivers/media/video/cx25821/cx25821-audio-upstream.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/video/cx25821/cx25821-audio-upstream.c b/drivers/media/video/cx25821/cx25821-audio-upstream.c
index 44cb183cf22a..a221b958c5a7 100644
--- a/drivers/media/video/cx25821/cx25821-audio-upstream.c
+++ b/drivers/media/video/cx25821/cx25821-audio-upstream.c
@@ -398,9 +398,9 @@ int cx25821_openfile_audio(struct cx25821_dev *dev,
398 vfs_read_retval = 398 vfs_read_retval =
399 vfs_read(myfile, mybuf, line_size, &pos); 399 vfs_read(myfile, mybuf, line_size, &pos);
400 400
401 if (vfs_read_retval > 0 401 if (vfs_read_retval > 0 &&
402 && vfs_read_retval == line_size 402 vfs_read_retval == line_size &&
403 && dev->_audiodata_buf_virt_addr != NULL) { 403 dev->_audiodata_buf_virt_addr != NULL) {
404 memcpy((void *)(dev-> 404 memcpy((void *)(dev->
405 _audiodata_buf_virt_addr 405 _audiodata_buf_virt_addr
406 + offset / 4), mybuf, 406 + offset / 4), mybuf,