+31
−7
Loading
stable inclusion from stable-v6.6.79 commit e1147961b2145fa61c3078a4a797d9576cde91ab category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/IBXANC Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=e1147961b2145fa61c3078a4a797d9576cde91ab -------------------------------- [ Upstream commit 79504249d7e27cad4a3eeb9afc6386e418728ce0 ] Due to an interplay between locking in the input and hid transport subsystems, attempting to register or deregister the relevant input devices during the hidraw open/close events can lead to a lock ordering issue. Though this shouldn't cause a deadlock, this commit moves the input device manipulation to deferred work to sidestep the issue. Fixes: 385a4886 ("HID: steam: remove input device when a hid client is running.") Signed-off-by:Vicki Pfau <vi@endrift.com> Signed-off-by:
Jiri Kosina <jkosina@suse.com> Signed-off-by:
Sasha Levin <sashal@kernel.org> (cherry picked from commit e1147961b2145fa61c3078a4a797d9576cde91ab) Signed-off-by:
Wentao Guan <guanwentao@uniontech.com>