]> git.proxmox.com Git - mirror_ubuntu-focal-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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Thu, 13 Jan 2022 17:43:00 +0000 (18:43 +0100)
commit9dcd54f062871ebf2a6af6b55a2e130c04d3aeec
tree6108b2a87cbcae8cc87b6f5350d66d5a1a007d42
parente72649c0d2c05b8685a12c16160fca3e441c03d2
platform/x86: hp_accel: Fix an error handling path in 'lis3lv02d_probe()'

BugLink: https://bugs.launchpad.net/bugs/1954834
[ Upstream commit c961a7d2aa23ae19e0099fbcdf1040fb760eea83 ]

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: a4c724d0723b ("platform: hp_accel: add a i8042 filter to remove HPQ6000 data from kb bus stream")
Fixes: 9e0c79782143 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
drivers/platform/x86/hp_accel.c