]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: hp_accel: Fix an error handling path in 'lis3lv02d_probe()'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 7 Nov 2021 19:57:07 +0000 (20:57 +0100)
committerHans de Goede <hdegoede@redhat.com>
Tue, 16 Nov 2021 09:19:47 +0000 (10:19 +0100)
commit3e1afcc4ee9afb1ae5ee16e250f42ffd97759b59
tree43c16cc6387c72d81269be12ee9061cef7fbbbea
parente9c05268a0c6615f290489dc2d58353432a45657
platform/x86: hp_accel: Fix an error handling path in 'lis3lv02d_probe()'

If 'led_classdev_register()' fails, some additional resources should be
released.

Add the missing 'i8042_remove_filter()' and 'lis3lv02d_remove_fs()' calls
that are already in the remove function but are missing here.

Fixes: a9287f44c469 ("platform: hp_accel: add a i8042 filter to remove HPQ6000 data from kb bus stream")
Fixes: 5ed55b56abbf ("lis3lv02d: merge with leds hp disk")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/5a4f218f8f16d2e3a7906b7ca3654ffa946895f8.1636314074.git.christophe.jaillet@wanadoo.fr
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/hp_accel.c