mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
The non-blocking if-statement here causes the AUDIO_GET_AMRWB_ENC_CONFIG ioctl to always return -EFAULT, even upon success. Fix it by correctly guarding the -EFAULT return value. Signed-off-by: Sultan Alsawaf <sultan@kerneltoast.com> Signed-off-by: Pranav Vashi <neobuddy89@gmail.com> Signed-off-by: Forenche <prahul2003@gmail.com> Signed-off-by: azrim <mirzaspc@gmail.com>