tablet: avoid errors calling libevdev_get_abs_info()
authorJosé Expósito <jose.exposito89@gmail.com>
Mon, 3 Oct 2022 10:53:22 +0000 (12:53 +0200)
committerJosé Expósito <jose.exposito89@gmail.com>
Mon, 3 Oct 2022 10:53:22 +0000 (12:53 +0200)
commit640208531c5bd1765201ce65d2a83ae082e0271d
tree1ce8d7bf36fad6b3c3a868d96bfd0a546326a7bf
parent7d29e2d61628655d85f78bdad728af9676a17942
tablet: avoid errors calling libevdev_get_abs_info()

Commit 806d4a1393db ("tablet: check libevdev_get_abs_info() return
value") prevented a crash when tilt was deactivated by a quirk.
For more information check [1].

Add similar checks before calling libevdev_get_abs_info() to avoid
possible crashes.

[1] https://gitlab.freedesktop.org/libinput/libinput/-/issues/805
Signed-off-by: José Expósito <jose.exposito89@gmail.com>
src/evdev-tablet.c