FAILED: Patch "HID: hid-pl: handle probe errors" failed to apply to 6.1-stable tree
Subsystems (2)
Sasha Levin
maintainerThe patch below does not apply to the 6.1-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
Thanks,
Sasha
------------------ original commit in Linus's tree ------------------
From 3756a272d2cf356d2203da8474d173257f5f8521 Mon Sep 17 00:00:00 2001
From: Oliver Neukum <[email protected]>
Date: Wed, 19 Nov 2025 10:09:57 +0100
Subject: [PATCH] HID: hid-pl: handle probe errors
Errors in init must be reported back or we'll
follow a NULL pointer the first time FF is used.
Fixes 20eb127906709 ("hid: force feedback driver for PantherLord USB/PS2 2in1 Adapter")
Signed-off-by Oliver Neukum <[email protected]>
Signed-off-by Jiri Kosina <[email protected]>
--- drivers/hid/hid-pl.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
drivers/hid/hid-pl.c +6 -1
@@ -194,9 +194,14 @@ static int pl_probe(struct hid_device *hdev, const struct hid_device_id *id) goto err; } -plff_init (hdev); + ret =plff_init (hdev); +if (ret) + goto stop;return 0 ; + +stop: +hid_hw_stop (hdev); err:return ret; }
Signature · 1 line
2.51.0