mbox series

[0/1] add hog ref in hog_attach_instance

Message ID 20200420135112.6749-1-scerveau@collabora.com (mailing list archive)
Headers show
Series add hog ref in hog_attach_instance | expand

Message

Stéphane Cerveau April 20, 2020, 1:51 p.m. UTC
When I tried to connect a bluetooth gamepad 8718,
I was experiencing a crash which can be reproduced
always.

https://www.amazon.com/Controller-PowerLead-Wireless-Compatible-Android/dp/B07XJ37HPK

After investigation, it appears that instance was not reffed initially
when added to the slist and double free was requested on this hog during
the free of the slist (unref during a destroy_gatt_req).

Stéphane Cerveau (1):
  add hog ref before adding to instances

 profiles/input/hog-lib.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)