Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp499251pxy; Wed, 21 Apr 2021 08:01:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzV2qH+mJzEnogqLwU0jT4p7guhD25U6F00NxEXe7o7WKZ7jAnFK/uaRajO/Ln+xRMp3Mp1 X-Received: by 2002:a17:906:3a45:: with SMTP id a5mr18562684ejf.288.1619017272479; Wed, 21 Apr 2021 08:01:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619017272; cv=none; d=google.com; s=arc-20160816; b=FgPderk8vb2RLlzuZpFhqppLQGQmMcSl+x/GBMMFM9lzOdHMLXu8ejK7ZOVv3jW5oE Q9tAN402qSrUfHDBUhQf2X8pgpoygRN//nxkPHOFmKeTDONacc8ZsNJfsDHduYLJrDtm izFybdPat5nmPmp19OIJI47OQ9tWfpSy1/4OU5U7ErKLWQJZU0KmFFa6kRzP4dP4zSEC Hu+2zygNUyi1+xBP3MqXQh0RYuAUYLx5XYdpSmbk5NHPoELYk1SWA6gRCtu4ZWyUPwb/ A/53UffLiRuLp+Bg0KHFXT/GKqKH29SB/mKR41BeiyKMDI2Z24zLb1fZ/nG1+XEVFvhP m9hg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=3jwA6mizX2IpXcSuTD97auXxpW9gw6wmfpJp+61vlFo=; b=DBEy+YJ+F+oK9kxRgE9oL4finbqYtLQpT7W9kC4lFqlbKL92bihw196OXmGhFqEXbj wprBx9HZ8y1idcfaJLSb+1DSrsI7OG+wrycAIafOP0gfPXF7QHMeMBCcJf4Eg0AKhGZ/ PNE0V+bCM69dNgFsYmWwVW00zq4w8OqsO42dLUUvZu1g9upFx5aJ0by7a6ATaPxVhndd +5F6t/SC4QJ2Sk1CrYuCi/RBJKHmEU907LcXMeR0f8T57eBWc/HFOcRaEdxWgvDCg92G 8QgmaH2k5NxiZJK3daloLkalK0SYFaYkqgSbuhVyN/LSFG4Cwi8r2fSB/k3z3wqUv0em ETjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=U4CN2ulN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q16si1953850edb.388.2021.04.21.08.00.47; Wed, 21 Apr 2021 08:01:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=U4CN2ulN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240437AbhDUNDd (ORCPT + 99 others); Wed, 21 Apr 2021 09:03:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:43068 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240359AbhDUNDU (ORCPT ); Wed, 21 Apr 2021 09:03:20 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6D00C6142F; Wed, 21 Apr 2021 13:02:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1619010167; bh=xG5knZPm185ejwvtN+fdLP+TxqkuOy5JUHYARZjxZR4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=U4CN2ulN4GN7SKvghKORS83DFcdAem0o97vdjRyyNwVOyoK99t0+TvfYfmTvZaySV 8+i1GT7jqxgW70enhDwi0BYDmr3vSErrssiv3qTliyk+tKYNMZ2VNRMDcBplDL72WP BZ8EAlg3UDC2tUdIsfGV0i19ecGzHF8K3VwAaPcg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , Aditya Pakki , Hans Verkuil , Mauro Carvalho Chehab Subject: [PATCH 002/190] Revert "media: st-delta: Fix reference count leak in delta_run_work" Date: Wed, 21 Apr 2021 14:57:57 +0200 Message-Id: <20210421130105.1226686-3-gregkh@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210421130105.1226686-1-gregkh@linuxfoundation.org> References: <20210421130105.1226686-1-gregkh@linuxfoundation.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This reverts commit 57cc666d36adc7b45e37ba4cd7bc4e44ec4c43d7. Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota). Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase. Cc: Aditya Pakki Cc: Hans Verkuil Cc: Mauro Carvalho Chehab Signed-off-by: Greg Kroah-Hartman --- drivers/media/platform/sti/delta/delta-v4l2.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/media/platform/sti/delta/delta-v4l2.c b/drivers/media/platform/sti/delta/delta-v4l2.c index c691b3d81549..2503224eeee5 100644 --- a/drivers/media/platform/sti/delta/delta-v4l2.c +++ b/drivers/media/platform/sti/delta/delta-v4l2.c @@ -954,10 +954,8 @@ static void delta_run_work(struct work_struct *work) /* enable the hardware */ if (!dec->pm) { ret = delta_get_sync(ctx); - if (ret) { - delta_put_autosuspend(ctx); + if (ret) goto err; - } } /* decode this access unit */ -- 2.31.1