From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B807C2590 for ; Sun, 22 Jan 2023 15:19:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3D0CFC433EF; Sun, 22 Jan 2023 15:19:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1674400799; bh=7Cp3t1KGrH/uoPGbgOR2tg/flOaKS8q1t6lm8NKK4zM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=piGwu26nQpvIz/JxNL/hiHT6ZHHW6Dxd1IMbYMln/DeAfACpSQ43/VOm7n9+7i2o4 XAI6Ek5izWc+UtXQRO9sZAVR4EQmWVphojZS0T4UwQ9FFfHtLVEsXcQtFmQjAsQouz K6+TEfs+WqGZ8F9tWU04czj3joRW5gXFZu6WR3xs= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, kernel test robot , Dan Carpenter , Yang Yingliang , Shay Drory , Saeed Mahameed Subject: [PATCH 5.15 114/117] net/mlx5: fix missing mutex_unlock in mlx5_fw_fatal_reporter_err_work() Date: Sun, 22 Jan 2023 16:05:04 +0100 Message-Id: <20230122150237.543052008@linuxfoundation.org> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230122150232.736358800@linuxfoundation.org> References: <20230122150232.736358800@linuxfoundation.org> User-Agent: quilt/0.67 Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Yang Yingliang commit 90e7cb78b81543998217b0eb446c067ce2191a79 upstream. Add missing mutex_unlock() before returning from mlx5_fw_fatal_reporter_err_work(). Fixes: 9078e843efec ("net/mlx5: Avoid recovery in probe flows") Reported-by: kernel test robot Reported-by: Dan Carpenter Signed-off-by: Yang Yingliang Signed-off-by: Shay Drory Signed-off-by: Saeed Mahameed Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/mellanox/mlx5/core/health.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/net/ethernet/mellanox/mlx5/core/health.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/health.c @@ -617,6 +617,7 @@ static void mlx5_fw_fatal_reporter_err_w mutex_lock(&dev->intf_state_mutex); if (test_bit(MLX5_DROP_NEW_HEALTH_WORK, &health->flags)) { mlx5_core_err(dev, "health works are not permitted at this stage\n"); + mutex_unlock(&dev->intf_state_mutex); return; } mutex_unlock(&dev->intf_state_mutex);