lkml.org 
[lkml]   [2020]   [Nov]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5.9 381/391] staging: fieldbus: anybuss: jump to correct label in an error path
    Date
    From: Jing Xiangfeng <jingxiangfeng@huawei.com>

    commit 7e97e4cbf30026b49b0145c3bfe06087958382c5 upstream.

    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>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    ---
    drivers/staging/fieldbus/anybuss/arcx-anybus.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    --- a/drivers/staging/fieldbus/anybuss/arcx-anybus.c
    +++ b/drivers/staging/fieldbus/anybuss/arcx-anybus.c
    @@ -293,7 +293,7 @@ static int controller_probe(struct platf
    regulator = devm_regulator_register(dev, &can_power_desc, &config);
    if (IS_ERR(regulator)) {
    err = PTR_ERR(regulator);
    - goto out_reset;
    + goto out_ida;
    }
    /* make controller info visible to userspace */
    cd->class_dev = kzalloc(sizeof(*cd->class_dev), GFP_KERNEL);

    \
     
     \ /
      Last update: 2020-11-03 21:53    [W:4.442 / U:0.356 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site