]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
iio:common:ssp_sensors: Fix an error handling path ssp_probe()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Fri, 10 Oct 2025 18:58:48 +0000 (20:58 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 6 Dec 2025 21:24:58 +0000 (06:24 +0900)
commit5b82774d0e4faca1575d227ecbdcac15aba7ca8e
treec40865d5bafffb715ec7e53bf729f3deff1ecc26
parent90e87682092641e383d120dd918c52b33bc25d5a
iio:common:ssp_sensors: Fix an error handling path ssp_probe()

commit 21553258b94861a73d7f2cf15469d69240e1170d upstream.

If an error occurs after a successful mfd_add_devices() call, it should be
undone by a corresponding mfd_remove_devices() call, as already done in the
remove function.

Fixes: 50dd64d57eee ("iio: common: ssp_sensors: Add sensorhub driver")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Nuno Sá <nuno.sa@analog.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iio/common/ssp_sensors/ssp_dev.c