Loading dsp/codecs/audio_utils.c +2 −3 Original line number Diff line number Diff line /* Copyright (c) 2010-2018, The Linux Foundation. All rights reserved. /* Copyright (c) 2010-2019, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -909,9 +909,8 @@ ssize_t audio_in_write(struct file *file, __func__, audio->ac->session); } } xfer = (count > (audio->pcm_cfg.buffer_size)) ? (audio->pcm_cfg.buffer_size) : count; xfer = (count > size) ? size : count; if (copy_from_user(cpy_ptr, buf, xfer)) { rc = -EFAULT; break; Loading Loading
dsp/codecs/audio_utils.c +2 −3 Original line number Diff line number Diff line /* Copyright (c) 2010-2018, The Linux Foundation. All rights reserved. /* Copyright (c) 2010-2019, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -909,9 +909,8 @@ ssize_t audio_in_write(struct file *file, __func__, audio->ac->session); } } xfer = (count > (audio->pcm_cfg.buffer_size)) ? (audio->pcm_cfg.buffer_size) : count; xfer = (count > size) ? size : count; if (copy_from_user(cpy_ptr, buf, xfer)) { rc = -EFAULT; break; Loading