Skip to content

Commit 7e97e4c

Browse files
hiss2018gregkh
authored andcommitted
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: 1761497 ("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>
1 parent df5fbca commit 7e97e4c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/staging/fieldbus/anybuss/arcx-anybus.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ static int controller_probe(struct platform_device *pdev)
293293
regulator = devm_regulator_register(dev, &can_power_desc, &config);
294294
if (IS_ERR(regulator)) {
295295
err = PTR_ERR(regulator);
296-
goto out_reset;
296+
goto out_ida;
297297
}
298298
/* make controller info visible to userspace */
299299
cd->class_dev = kzalloc(sizeof(*cd->class_dev), GFP_KERNEL);

0 commit comments

Comments
 (0)