Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp491594pxy; Wed, 21 Apr 2021 07:51:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxrZGfn4YDRbP0NIMuhWWNSwhfVA9o2n6Eev8XRjlqZ52vFYfGhSTNswT6lR8mHx9F2krjH X-Received: by 2002:a17:90a:d983:: with SMTP id d3mr11491151pjv.99.1619016672188; Wed, 21 Apr 2021 07:51:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619016672; cv=none; d=google.com; s=arc-20160816; b=L4ktMdD7bM1+vVEMuFDhhi2QB2F8Xtw4OxayYJJ0C3iDDsZk4SMBovA1exM3N9CXjq LtpyfzmjJ3vcvLT5QORT4oUpbrmWIi4uWEKMDLZx7PZZ6RBBO9J+9pD84BSgH9rItsS9 /PjbTpfQu5atNjxn0DpW+LoTMp2cnhTBDAIJIaigrIFRiWECcoN/VhIQHO4ILTVAlac5 yd2Dt6mjP+bQBD82b8lK3LnW5tYIOSjuz+uu5Eu/ipi1A6ctaMT2zwe2TIsXoz64Avr2 tUyVmFhXyhtpqTml83C+x/3XN0h7tdtPo4ihK4prRB7Uspyszio1Q/rCqG+CfCqhYtpr NYOw== 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=TCExpvaqUXgEbesOALD29YF5dM2Ag40sC3y7pcaJLzk=; b=jtt8YPlexhEGdlJoFmldKux43IIproUMPqW3Jmr9cBo0gitwLrh8aRS1ArLlW0h3cN SNJjQpxwXynuiqt7N1e9RCb5/iWttTJG5gwdsSea/8drmlMNrEvGKGPBsf9zkag63IkV gkAAqZe9MxoSOxSAvdkbcDz/IdHdOnr48ePmvt3kFKS0adzCxwfSZB+gpAl2jr0ef9EM 3LKp4CaPqJ+KvcSwjL2eV0TdA+8gY3lr+l3gze4hLHlGkJcV9223ig8nlDdwCv5Nqzu/ rBJQqWY9Uukh6GgpVnjTlTkB+0KDNNCiRESE/CGtyitYFyp7QlhP0COw3zDrP0MkTMpd IY0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=KBE6yPwm; 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 m19si2810571pjv.88.2021.04.21.07.51.00; Wed, 21 Apr 2021 07:51: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=KBE6yPwm; 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 S240381AbhDUND3 (ORCPT + 99 others); Wed, 21 Apr 2021 09:03:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:42922 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240295AbhDUNDP (ORCPT ); Wed, 21 Apr 2021 09:03:15 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 687E061466; Wed, 21 Apr 2021 13:02:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1619010161; bh=w5cntnSQSLZYATigOln5iqK+yz1jM039eB5lvhRRzGA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KBE6yPwmxenq4IRTOdhKQGuvu/ztAaKMJknDyQKccNkOA9+xeGE909n5+Tulnm2e8 NXt+x/4u470c7DXbz5YkOPJhy2Q/isUXS+E6fs+pykNqnQokGVtBZL9peu+i2RA8QC saRdrDkj+1tucXSEFxIbLc5CcgBTiX8cbqUx10sg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , Qiushi Wu , Hans Verkuil , Mauro Carvalho Chehab Subject: [PATCH 010/190] Revert "media: camss: Fix a reference count leak." Date: Wed, 21 Apr 2021 14:58:05 +0200 Message-Id: <20210421130105.1226686-11-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 d0675b67b42eb4f1a840d1513b5b00f78312f833. 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: Qiushi Wu Cc: Hans Verkuil Cc: Mauro Carvalho Chehab Signed-off-by: Greg Kroah-Hartman --- drivers/media/platform/qcom/camss/camss-csiphy.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/media/platform/qcom/camss/camss-csiphy.c b/drivers/media/platform/qcom/camss/camss-csiphy.c index 509c9a59c09c..a5d717d022a5 100644 --- a/drivers/media/platform/qcom/camss/camss-csiphy.c +++ b/drivers/media/platform/qcom/camss/camss-csiphy.c @@ -174,10 +174,8 @@ static int csiphy_set_power(struct v4l2_subdev *sd, int on) int ret; ret = pm_runtime_get_sync(dev); - if (ret < 0) { - pm_runtime_put_sync(dev); + if (ret < 0) return ret; - } ret = csiphy_set_clock_rates(csiphy); if (ret < 0) { -- 2.31.1