mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-01-07 00:40:13 +01:00
tablet: catch potential segfault if the filter fails to allocate
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
11586b7f34
commit
53baf3d17f
1 changed files with 2 additions and 0 deletions
|
|
@ -1599,6 +1599,8 @@ tablet_init_accel(struct tablet_dispatch *tablet, struct evdev_device *device)
|
|||
|
||||
filter = create_pointer_accelerator_filter_tablet(x->resolution,
|
||||
y->resolution);
|
||||
if (!filter)
|
||||
return -1;
|
||||
|
||||
rc = evdev_device_init_pointer_acceleration(device, filter);
|
||||
if (rc != 0)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue