platform/surface: dtx: Fix poll function
The poll function should not return -ERESTARTSYS. Furthermore, locking in this function is completely unnecessary. The ddev->lock protects access to the main device and controller (ddev->dev and ddev->ctrl), ensuring that both are and remain valid while being accessed by clients. Both are, however, never accessed in the poll function. The shutdown test (via atomic bit flags) be safely done without locking, so drop locking here entirely. Reported-by: Nkernel test robot <lkp@intel.com> Fixes: 1d609992 ("platform/surface: Add DTX driver) Signed-off-by: NMaximilian Luz <luzmaximilian@gmail.com> Link: https://lore.kernel.org/r/20210513134437.2431022-1-luzmaximilian@gmail.comSigned-off-by: NHans de Goede <hdegoede@redhat.com>
Showing
想要评论请 注册 或 登录