Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp2015371imn; Mon, 1 Aug 2022 08:11:15 -0700 (PDT) X-Google-Smtp-Source: AA6agR75gAMbzRSzVysda1snvDuvsyHMp2zDJLNGt3fVaJYAIdsF7Lb7tJEuTmgQDaaq2N0BEy4j X-Received: by 2002:aa7:d8c6:0:b0:43d:b0a1:5266 with SMTP id k6-20020aa7d8c6000000b0043db0a15266mr4003284eds.164.1659366675670; Mon, 01 Aug 2022 08:11:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659366675; cv=none; d=google.com; s=arc-20160816; b=gd+7SKK/BQxwvGzIzrwreo+lt8lYjShDA50d/Qgy/XLhwpwqINFN+NpPnak0EJk92b iQHc8mnMjSwlnR4yL6weQflQWLNktwOslnve3SeGhMTufGiWiwr1POKkp27PKXDVqZGC LtpwJXnufiae4pmcO8MIbPKB4ew+F/0TNfwB6S4ieKcfVLKezQMl/bgChrpFuZYGS1dh aQuCruMZ1JoiPtzSoVOL1eo4YMpgmS1Pz4bZFDJj/ZZcpLEeFiNA2QJYzVWYaHnU1Z5M BIZnsrNBGrhGL7gQXsNdpKcrk1amtlVRMs0z6khlci+RoGC++V2COIHqpo/jHEmnMuEa KL5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=14KOQn3U09Etizd1SZ3pc5DfY9+tF9zMxWV58jSuGuE=; b=m48UoU0tx+uLWT55bk9SEqTSsSHA2X10Gs6uuOdzW74kgsT0Gt+E2nccUCteJ4JNgk DNQAZf5JsN6O5RQCg3rYAA9/hxotHGdeG9vXXRMa+GkPJzaQhVcARyol4ay37t43EFcd zXC5TtrmQ6EkFyJGgOir9xGEAnAbM57RPm9YE8+u7cQHtz33E773TPODQP3Qiotmu2Rq EwcP3/tGAi7eRSalqKUKLblao+H/snbI58U6EvE/umGK9rtM51e5qWtxXeoh69RRJkRf FvPdVH4kgavWjXHGW/WseFanGvYf9CEez/LBouPUPqjaXWahOvL6v/qeuUx3mBjLsJmD cx0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@resnulli-us.20210112.gappssmtp.com header.s=20210112 header.b=ln9Otoqf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r1-20020a50d681000000b0043d6b26bdd7si4216343edi.170.2022.08.01.08.10.39; Mon, 01 Aug 2022 08:11:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@resnulli-us.20210112.gappssmtp.com header.s=20210112 header.b=ln9Otoqf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233010AbiHAOlQ (ORCPT + 99 others); Mon, 1 Aug 2022 10:41:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53282 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232825AbiHAOk5 (ORCPT ); Mon, 1 Aug 2022 10:40:57 -0400 Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 65E8137185 for ; Mon, 1 Aug 2022 07:40:54 -0700 (PDT) Received: by mail-wr1-x42f.google.com with SMTP id z17so9703341wrq.4 for ; Mon, 01 Aug 2022 07:40:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=resnulli-us.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=14KOQn3U09Etizd1SZ3pc5DfY9+tF9zMxWV58jSuGuE=; b=ln9Otoqf4wEoVRIgdfZr95riVXGLZq63ykvOyiv+nRsT6MXy2pw0qlNiHv/wkKg8VR qy6rgo5S0kRmVSJSI8oHq+/TK9IDHrzOdBpMh7NoQseDYEygb5jCpitEs5/YbUvxtYl9 Wdl7/jFbSDXmtqsBIlqeKGrOnRmp/MS2sN9mbbe2UDX19rieQ9Eq9czDezqyITQaZrBu OGG13Y1dXSdGcYKkB4UfByrAaFXUic4Wv1k5L/4kyGvWKa/Bl+SpabJDRHId0rlL7zcR hes8/TjC/da/ehnuer1ZmnPG7I8QC2wan9ylugRQoiQEV7Z1cDYYnlFylLmUiohQKlh7 zfHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=14KOQn3U09Etizd1SZ3pc5DfY9+tF9zMxWV58jSuGuE=; b=AFvMNOKqyqRZjdHzQTTa5nAHkHir03xnhn7uqPbR39qGexWoQouvfHFJ1LkbvaKfBf 3qIEEC5woqJM7oOspdS1L/HRtyprTYDZgaoZpPmtlI6m6KZj4/vY/01EcsgePT0Xu1Od TB12RgIp4hJpcZDqCVOl8SZtrxTDYYHLJt2roKO5F7rli0EkSBnXiVaIysVI8wDVcgid bkq8JKhgTzuaU6Q1GcpDYLpXJpSey33P79Vd0dteu75XJPOSlSWb6bVTP0+X/CHleVSg NMEg4U8SfyuNfMhB4I7B7V3f86WHmgug3SAx9FsWg0k0ZFav6mGvqIi5O0iI/v8kbk1P niXw== X-Gm-Message-State: ACgBeo2gpTup3PRprRFqNtYJZqr3WlrQ6gTV6gx2SLIj7aaw/SQioA/+ GFtSPw6twnwQSasc+f3cAG6SHA== X-Received: by 2002:adf:e0cd:0:b0:21f:bb1:21f4 with SMTP id m13-20020adfe0cd000000b0021f0bb121f4mr10665807wri.113.1659364852659; Mon, 01 Aug 2022 07:40:52 -0700 (PDT) Received: from localhost (host-213-179-129-39.customer.m-online.net. [213.179.129.39]) by smtp.gmail.com with ESMTPSA id r21-20020a05600c35d500b003a17ab4e7c8sm20525405wmq.39.2022.08.01.07.40.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Aug 2022 07:40:51 -0700 (PDT) Date: Mon, 1 Aug 2022 16:40:50 +0200 From: Jiri Pirko To: Ammar Faizi Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , kernel test robot , Dan Carpenter , Moshe Shemesh , Jiri Pirko , Fernanda Ma'rouf , netdev Mailing List , GNU/Weeb Mailing List , Linux Kernel Mailing List , kbuild Mailing List , kbuild-all Mailing List Subject: Re: [PATCH] net: devlink: Fix missing mutex_unlock() call Message-ID: References: <202207311503.QBFSGqiL-lkp@intel.com> <20220801115742.1309329-1-ammar.faizi@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220801115742.1309329-1-ammar.faizi@intel.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Mon, Aug 01, 2022 at 01:59:56PM CEST, ammarfaizi2@gnuweeb.org wrote: >From: Ammar Faizi > >Commit 2dec18ad826f forgets to call mutex_unlock() before the function >returns in the error path: > > New smatch warnings: > net/core/devlink.c:6392 devlink_nl_cmd_region_new() warn: inconsistent \ > returns '®ion->snapshot_lock'. > >Make sure we call mutex_unlock() in this error path. > >Reported-by: kernel test robot >Reported-by: Dan Carpenter >Fixes: 2dec18ad826f52658f7781ee995d236cc449b678 ("net: devlink: remove region snapshots list dependency on devlink->lock") >Signed-off-by: Ammar Faizi Reviewed-by: Jiri Pirko Thanks for the fix!