HID: hid-pl: handle probe errors
Subsystems (2)
PATCH 1/1 HID: hid-pl: handle probe errors
Commit 3756a272d2cf356d2203da8474d173257f5f8521 upstream.
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]>
--- 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.53.0
Greg KH
maintainerQuoted 11 lines · Oliver Neukum
Commit
3756a272d2cf356d2203da8474d173257f5f8521upstream.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]>--- drivers/hid/hid-pl.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
What kernel tree(s) is this for?
thanks,
greg k-h
Quoted 6 lines · Greg KH
Quoted 5 lines · Oliver Neukum
Commit
3756a272d2cf356d2203da8474d173257f5f8521upstream.Errors in init must be reported back or we'll
follow a NULL pointer the first time FF is used.
Quoted 8 lines
Quoted 6 lines
Fixes 20eb127906709 ("hid: force feedback driver for PantherLord USB/PS2 2in1 Adapter")Signed-off-by Oliver Neukum <[email protected]>--- drivers/hid/hid-pl.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)What kernel tree(s) is this for?
6.12
Sorry
Oliver