Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp490635pxy; Wed, 21 Apr 2021 07:49:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwZmUNpq0swGmaYeG/oOGLPuoJgOZt+UvcYRbfphtr/Jy/9VmX+N3TtXnw3fV+QffVDz/OH X-Received: by 2002:a17:906:cc46:: with SMTP id mm6mr34004286ejb.138.1619016598366; Wed, 21 Apr 2021 07:49:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619016598; cv=none; d=google.com; s=arc-20160816; b=iCxF4JVMdJl+pZmVzlepcEg64c2Czv6Yb7gkomgOLDPAj9UnxGuEI4L/bZZN6e8ouZ ykyt+9XwIxJwHGyQRf++anlC7xScQa6BInrpX8o7PK7OK4bMskCtfAHh6iy2Tz7eUyfX c44gdRTeB/gxkXfeO32D2ivV+n6B8XnUfjl7uyy1eNYNE+0jqx0IPGdZbkE7NxH/LEXO ogud8JnPnUxiIMp+TqIYW8G/VbxXWDEKPixHCEqqcodOeffLG5PkcGwYMSyLdS2GKioW LVclTRv9h8AMx2gIw3fUOlDU9+y7f22qWIYPlmhL3yy0tvZzilfb1l6vnS/RmLAYKFG6 KRyQ== 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=WNognFZ262+etdfro8cUR/aMbg0aEEU7XQdvCdNE/kU=; b=EC6p/wSAdN6Cq6xcB3ok4QZ22Q5j38nsM8VQawb9ClsbH0TO5Z62ipftw4PU1N6Jbe TQTMaVehotqBRlLedPttxgq4k2p/z+NJgMrH0jojtG7EOpvhBvjn3ObxROexU/sZiLaz kkAOa2RuqKJcX7S/4ztK3YIE4PpGFwDiBGyP+CsChjImGa3qHEuwVNZucXAc4uv74tsJ yg33wGh8simUv7H1wTAQpHXi5jc+JyKPC9b8gk7krwN1cXyx+dy5nsVqE2PvBsB7ZiG0 JAcPdoBxoVCY5dLQ07lZfZNK6rzy7BGYDxP+W8rjlG+Ag/0GIvdOkrufJdY7URA0xLH+ 6fWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=NiBxhQJ8; 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 q16si2390319edd.193.2021.04.21.07.49.34; Wed, 21 Apr 2021 07:49:58 -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=NiBxhQJ8; 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 S240248AbhDUNCx (ORCPT + 99 others); Wed, 21 Apr 2021 09:02:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:41976 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240153AbhDUNCk (ORCPT ); Wed, 21 Apr 2021 09:02:40 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 31B5C613DC; Wed, 21 Apr 2021 13:02:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1619010126; bh=ersMlf4mb5vpgfp70k5CUd4bD/MbCELRqIIwpyX3d7Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NiBxhQJ84lZ1N7isfs83WWpprAlGB8nM0O7LxYCQ4EE+QnwRORDCog5m/F5JDCqi2 nZtdXhairD58EuOPQSIT4xGtmYiUMHz+WyDThrHHYCvyYBc+e4Xuf/i06Si9nGzzH4 v1Cmj2xXbKySKKETbVJbiaIrPq/xfuYWc2dcOYj0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , Qiushi Wu , Hans Verkuil , Mauro Carvalho Chehab Subject: [PATCH 004/190] Revert "media: exynos4-is: Fix several reference count leaks due to pm_runtime_get_sync" Date: Wed, 21 Apr 2021 14:57:59 +0200 Message-Id: <20210421130105.1226686-5-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 7ef64ceea0008c17e94a8a2c60c5d6d46f481996. 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/exynos4-is/fimc-isp.c | 4 +--- drivers/media/platform/exynos4-is/fimc-lite.c | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/media/platform/exynos4-is/fimc-isp.c b/drivers/media/platform/exynos4-is/fimc-isp.c index a77c49b18511..cde0d254ec1c 100644 --- a/drivers/media/platform/exynos4-is/fimc-isp.c +++ b/drivers/media/platform/exynos4-is/fimc-isp.c @@ -305,10 +305,8 @@ static int fimc_isp_subdev_s_power(struct v4l2_subdev *sd, int on) if (on) { ret = pm_runtime_get_sync(&is->pdev->dev); - if (ret < 0) { - pm_runtime_put(&is->pdev->dev); + if (ret < 0) return ret; - } set_bit(IS_ST_PWR_ON, &is->state); ret = fimc_is_start_firmware(is); diff --git a/drivers/media/platform/exynos4-is/fimc-lite.c b/drivers/media/platform/exynos4-is/fimc-lite.c index fe20af3a7178..1576f273761b 100644 --- a/drivers/media/platform/exynos4-is/fimc-lite.c +++ b/drivers/media/platform/exynos4-is/fimc-lite.c @@ -471,7 +471,7 @@ static int fimc_lite_open(struct file *file) set_bit(ST_FLITE_IN_USE, &fimc->state); ret = pm_runtime_get_sync(&fimc->pdev->dev); if (ret < 0) - goto err_pm; + goto unlock; ret = v4l2_fh_open(file); if (ret < 0) -- 2.31.1