mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-21 21:17:37 -08:00
Upstream did mention they plan to release a fixed 0.10.0 soon'ish 2 weeks ago, but given 6.18.1 dist kernels been added better off fixing this now. Patch should be safe enough to not be worth a ~arch revbump, may help for users accepting ~arch kernels. Closes: https://bugs.gentoo.org/967493 Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
20 lines
611 B
Diff
20 lines
611 B
Diff
https://bugs.gentoo.org/967493
|
|
https://github.com/atar-axis/xpadneo/issues/562
|
|
https://github.com/atar-axis/xpadneo/pull/566
|
|
--- a/hid-xpadneo/src/hid-xpadneo.c
|
|
+++ b/hid-xpadneo/src/hid-xpadneo.c
|
|
@@ -1194,5 +1194,5 @@
|
|
return -ENOMEM;
|
|
|
|
- xdata->id = ida_simple_get(&xpadneo_device_id_allocator, 0, 0, GFP_KERNEL);
|
|
+ xdata->id = ida_alloc(&xpadneo_device_id_allocator, GFP_KERNEL);
|
|
xdata->quirks = id->driver_data;
|
|
|
|
@@ -1289,5 +1289,5 @@
|
|
{
|
|
if (xdata->id >= 0) {
|
|
- ida_simple_remove(&xpadneo_device_id_allocator, xdata->id);
|
|
+ ida_free(&xpadneo_device_id_allocator, xdata->id);
|
|
xdata->id = -1;
|
|
}
|