Commit 8a8e63f
committed
Input: appletouch - fix potential race between resume and open
Take the input device's mutex in atp_resume() and atp_recover() to make
sure they are not racing with open and close methods, and use
input_device_enabled() helper to see if communication with the device
needs to be restarted after resume.
Link: https://patch.msgid.link/uuwucixxc2ckd6ul6yv5mdvkc3twytg4tg5a5vhfqg6m2qcodc@klaco6axglbm
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>1 parent 3d9586f commit 8a8e63f
1 file changed
Lines changed: 4 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
203 | | - | |
204 | 203 | | |
205 | 204 | | |
206 | 205 | | |
| |||
800 | 799 | | |
801 | 800 | | |
802 | 801 | | |
803 | | - | |
804 | 802 | | |
805 | 803 | | |
806 | 804 | | |
| |||
810 | 808 | | |
811 | 809 | | |
812 | 810 | | |
813 | | - | |
814 | 811 | | |
815 | 812 | | |
816 | 813 | | |
| |||
963 | 960 | | |
964 | 961 | | |
965 | 962 | | |
966 | | - | |
| 963 | + | |
| 964 | + | |
967 | 965 | | |
968 | 966 | | |
969 | 967 | | |
| |||
981 | 979 | | |
982 | 980 | | |
983 | 981 | | |
984 | | - | |
| 982 | + | |
| 983 | + | |
985 | 984 | | |
986 | 985 | | |
987 | 986 | | |
| |||
0 commit comments