Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

staging: fieldbus: anybuss: jump to correct label in an error path

In current code, controller_probe() misses to call ida_simple_remove()
in an error path. Jump to correct label to fix it.

Fixes: 17614978ed34 ("staging: fieldbus: anybus-s: support the Arcx anybus controller")
Reviewed-by: Sven Van Asbroeck <TheSven73@gmail.com>
Signed-off-by: Jing Xiangfeng <jingxiangfeng@huawei.com>
Cc: stable <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20201012132404.113031-1-jingxiangfeng@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Jing Xiangfeng and committed by
Greg Kroah-Hartman
7e97e4cb df5fbca6

+1 -1
+1 -1
drivers/staging/fieldbus/anybuss/arcx-anybus.c
··· 293 293 regulator = devm_regulator_register(dev, &can_power_desc, &config); 294 294 if (IS_ERR(regulator)) { 295 295 err = PTR_ERR(regulator); 296 - goto out_reset; 296 + goto out_ida; 297 297 } 298 298 /* make controller info visible to userspace */ 299 299 cd->class_dev = kzalloc(sizeof(*cd->class_dev), GFP_KERNEL);