input: sensor: fix data polling continues even resume fails
The data polling would continues if device resume fails. The
previous logic will free the input device in this condition.
But the polling thread used it without checking and this will
cause the kernel crash.
CRs-fixed: 575581
Change-Id: I88f862e2447b808fecab70d32599c68eceec90eb
Signed-off-by:
Oliver Wang <mengmeng@codeaurora.org>
Loading
Please register or sign in to comment