Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp484268pxy; Wed, 21 Apr 2021 07:41:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyXS6XxqC4Nbs3820FGK8AtuwxXxKLhRR17O7/2XSR9lQriSBPpZ/SgN9gJL3aMMdutdVnC X-Received: by 2002:aa7:9e4f:0:b029:25e:cf65:c554 with SMTP id z15-20020aa79e4f0000b029025ecf65c554mr16322918pfq.66.1619016061334; Wed, 21 Apr 2021 07:41:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619016061; cv=none; d=google.com; s=arc-20160816; b=q4PjU8XXOqcwuM0lslnMNxiiOOk3PTsCJBdlWd15KJHRlEGtcDWd75yWixJipAGbJ8 NQwzjMoNBYYi/SjxRGeGDyKUqEP6ZxYOpJYP7BkT5uM74kpCgVmCVJHNEijQ2ugGJUFz PVFrCLOEg3AkEIyUcHu+crfzBel1CugexYk5IugQEAjBJvjtdOddyUQ2xXSZbAb5cEsz v6L7TrDSNq2ZoOpN2Z6b7IxBoPPv6Z6O/dU31cFBmV/5sFd+rTjwiIpLZ/jFU7gTtYyh 8jBNjK+bjlscgjxCYwqJ7QSArH6yPKQStDDIKtIxGcqlWtq5SnXt2THNf79kYuCXW5dz KJYQ== 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=rRTTj3DJJwdFZZ3GloFtSx5lhrJXSf8ylQILCf6EhNA=; b=a4zGghPaJphGHF4MTSyqBdN2myDTUjWaQhRm5NaueSJRxJNcHYqqy3lnuAvXAb7FWx YGM9nd8EFmqvIOMRu9ryRNr75OVN7SBtRiz+cjZO2jmxthD7er/vFJYmQv4rswQzOwQ8 nRdTObTm7NvmmjVul0JgJ/hJ0OpJjs9fx5BGEas0S08NZFD8TkrVpohfEaTmVl5OzOs3 X4YZb4CqfiZFDGHqhb5tAwxBzGrRaMvHbF3go8dVObXdULGrQwzQ1Yi2dZT59UuZg4M9 ThjU1L+b62C3e/3YZBCeriYuGzI1QAp+zhlpbKzIOekRjKGSQ7x6yQHl+Y1IRYqGyti3 ZJWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=VEWAkbyv; 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 f11si2663443plj.213.2021.04.21.07.40.48; Wed, 21 Apr 2021 07:41:01 -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=VEWAkbyv; 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 S240090AbhDUNCQ (ORCPT + 99 others); Wed, 21 Apr 2021 09:02:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:41306 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240078AbhDUNCP (ORCPT ); Wed, 21 Apr 2021 09:02:15 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 937A66144D; Wed, 21 Apr 2021 13:01:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1619010101; bh=eRF5gCGnhJrUpduAvoTsOp9QhUxaKveTkbj2f2/mQXI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VEWAkbyvzciy92/JJX2CX/gDbsF8dddkgt3J1EngKYzn1Uc+Lr4MT2lwRtilap1tx sPmnVRs8vFcZVtYqMs5CJqLKtaotSRi78ejXYP0GHh7vMy3I1s7ajXzLZNwd09Rlx/ 3cqS7iwOkrNW/b5cmkwirX1ChInIoOXZjphmCAmc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , Qiushi Wu , Hans Verkuil , Mauro Carvalho Chehab Subject: [PATCH 013/190] Revert "media: rcar-vin: Fix a reference count leak." Date: Wed, 21 Apr 2021 14:58:08 +0200 Message-Id: <20210421130105.1226686-14-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 410822037cc909c4bef845a71e9cac92b75591d2. 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/rcar-vin/rcar-v4l2.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/media/platform/rcar-vin/rcar-v4l2.c b/drivers/media/platform/rcar-vin/rcar-v4l2.c index 457a65bf6b66..d8144cde2952 100644 --- a/drivers/media/platform/rcar-vin/rcar-v4l2.c +++ b/drivers/media/platform/rcar-vin/rcar-v4l2.c @@ -871,10 +871,8 @@ static int rvin_open(struct file *file) int ret; ret = pm_runtime_get_sync(vin->dev); - if (ret < 0) { - pm_runtime_put_noidle(vin->dev); + if (ret < 0) return ret; - } ret = mutex_lock_interruptible(&vin->lock); if (ret) -- 2.31.1