linux-stable/drivers/staging/fieldbus
Christophe JAILLET 7079b3483a staging: fieldbus: Fix the error handling path in anybuss_host_common_probe()
If device_register() fails, device_unregister() should not be called
because it will free some resources that are not allocated.
put_device() should be used instead.

Fixes: 308ee87a2f ("staging: fieldbus: anybus-s: support HMS Anybus-S bus")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/5401a519608d6e1a4e7435c20f4f20b0c5c36c23.1650610082.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-04-22 16:48:31 +02:00
..
Documentation dt-bindings: anybus-controller: move to staging/ tree 2019-09-12 10:35:51 +01:00
anybuss staging: fieldbus: Fix the error handling path in anybuss_host_common_probe() 2022-04-22 16:48:31 +02:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile staging: fieldbus: anybus-s: support the Arcx anybus controller 2019-04-17 12:07:31 +02:00
TODO staging: fieldbus: add TODO 2019-04-17 12:07:31 +02:00
dev_core.c staging: fieldbus: use kobj_to_dev() to get device 2020-11-23 17:59:51 +01:00
fieldbus_dev.h staging: fieldbus: move "offline mode" definition to fieldbus core 2019-09-30 21:58:03 +02:00