sound: usb: Fix error handling path
Commit 2733ec307cd5 ("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:  Pratham Pratap <prathampratap@codeaurora.org>
Pratham Pratap <prathampratap@codeaurora.org>
Loading
Please register or sign in to comment
