Commit 6514821b authored by Ashish Kumar Gupta's avatar Ashish Kumar Gupta Committed by Neill Kapron
Browse files

ANDROID: usb: gadget: android_f_accessory: remove sleeping function from


spinlock

misc_register function can sleep the execution and code shouldn't sleep
in the atomic context. Move misc_register out of spinlock.

use GFP_ATOMIC flag in memory allocation so the code context shouldn't
go into sleep mode.

Test: manually tested the above steps, and successfully switch between
USB modes.
Test: Run AOA verifier tool
Bug: 322732675

Signed-off-by: default avatarAshish Kumar Gupta <kumarashishg@google.com>
(cherry picked from https://android-review.googlesource.com/q/commit:71a9b4bd904095839bdf986af71afd80c2fcb899)
Merged-In: I9cd059a23d710cfd809add5801e85df17d55f6f7
Change-Id: I9cd059a23d710cfd809add5801e85df17d55f6f7
parent 79c4b2fb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment