Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b52f798c authored by Pratham Pratap's avatar Pratham Pratap
Browse files

sound: usb: Fix error handling path



Commit 2733ec30 ("sound: usb: Clear in_use if wait_event
fails while disconnect") added ENODEV check with EINVAL in the
error path if chip is removed while handling uaudio stream request.
Instead, both the error codes should be checked exclusively in the
return path to avoid NULL pointer access.

Change-Id: Iebf12b6f13fc6a22c679ed3482759c9173004bb8
Signed-off-by: default avatarPratham Pratap <prathampratap@codeaurora.org>
parent 37e541f7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment