Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp563614pxy; Wed, 21 Apr 2021 09:21:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz9KtBkrvhKlC3uDBhdNEl4dlgtJTkTK1lEbVAGB3yq8wBVGs10X1LYhvCOFrTWGcB5216D X-Received: by 2002:a63:e903:: with SMTP id i3mr22304107pgh.374.1619022084242; Wed, 21 Apr 2021 09:21:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619022084; cv=none; d=google.com; s=arc-20160816; b=xZGveAF3kmwqwtYidM7SKtfL7F0IX7qyZSUxD/7aOQek2iWEjGDPK0Rt0Q8Pb3q6JD M1pfaRBcSzHI2KR2JmxMkrnnU+FfGuEGM//+8sr0qjEtdAYzb++JLtahZinCLF2eChgE jn+sm6ZQFywYSXBBFlgz+Idn29GkCDn4aPkun6C0TY12leSpwTE8jflweKoV59rt3S2N Pl4h4fajqNbeUwHKN9383Ag4uKtjZvzMoVZUZRJqyx2V0pBKCcGEFpol+SrtbZ+fhP/u txoM52fA+2QOP+KBOLYCOX8kejnb1DsbF1LHUWUkkqbdbLkyUjpsv22ygTssAlW5uSkR oO5w== 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=Bj7gfg/hfUsXMIFy4Vbz302oPTHrq/OhLU1OCwUy82s=; b=j5hMEjukZnQuGASjwNgeYLmvhru4cUV1usMQIW29ezTYL624+vADt3KTcUKlMvwOGs 6e7Ci69nGqQC90FR4F5IW0Bn1HQi6b9/rC7+Y0XCJz/4WC18uVriHWy/inEzdq/cfyss u9UzJzNZiFWiiik0epb0RkU/3R704y02TLUVuOOiEyJbCSkRP592jUqNb51hyIx+yXX2 2BGQN7iw4Jk8HCiFx6zt/WWWHsNWCgdexcZfX4iUrUijmh5bZI01ILMBWlxw2N4KexKi 6vTHxtVp0RYQoMqPZAwd/zI4qM9gUdYA/Ti/o0hJ21rd2UDReCh+B5iYHu+18zo8/N8N NuKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=dBV0o6rW; 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 t129si2721845pfb.112.2021.04.21.09.21.10; Wed, 21 Apr 2021 09:21:24 -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=dBV0o6rW; 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 S242034AbhDUNLf (ORCPT + 99 others); Wed, 21 Apr 2021 09:11:35 -0400 Received: from mail.kernel.org ([198.145.29.99]:49770 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241049AbhDUNIk (ORCPT ); Wed, 21 Apr 2021 09:08:40 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A90E161456; Wed, 21 Apr 2021 13:08:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1619010482; bh=YN+N+lOhZFGX8Eqnl4lW/SkY2DO/lgawVdtFLhv+E/A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dBV0o6rWS6W3l6lM0iRafIsS8s2wf/bqx2n5VY1r9uT49jkoFmNYTzQJt04+UJDBU DXXzJ2pscHwBvbc6+mJa/OgBT4WpTO+LJ1ys96nEk4m0w84HpRZIYwfEnxpuQX76GT 1If8EctqsgIVWdIkjQRt6FEf3JrwdQUZMGHwe48o= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , Kangjie Lu , Mauro Carvalho Chehab Subject: [PATCH 153/190] Revert "media: usb: gspca: add a missed return-value check for do_command" Date: Wed, 21 Apr 2021 15:00:28 +0200 Message-Id: <20210421130105.1226686-154-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 5ceaf5452c1b2a452dadaf377f9f07af7bda9cc3. 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: Kangjie Lu Cc: Mauro Carvalho Chehab Signed-off-by: Greg Kroah-Hartman --- drivers/media/usb/gspca/cpia1.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/media/usb/gspca/cpia1.c b/drivers/media/usb/gspca/cpia1.c index d93d384286c1..99e594559a0c 100644 --- a/drivers/media/usb/gspca/cpia1.c +++ b/drivers/media/usb/gspca/cpia1.c @@ -537,14 +537,10 @@ static int do_command(struct gspca_dev *gspca_dev, u16 command, } if (sd->params.qx3.button) { /* button pressed - unlock the latch */ - ret = do_command(gspca_dev, CPIA_COMMAND_WriteMCPort, + do_command(gspca_dev, CPIA_COMMAND_WriteMCPort, 3, 0xdf, 0xdf, 0); - if (ret) - return ret; - ret = do_command(gspca_dev, CPIA_COMMAND_WriteMCPort, + do_command(gspca_dev, CPIA_COMMAND_WriteMCPort, 3, 0xff, 0xff, 0); - if (ret) - return ret; } /* test whether microscope is cradled */ -- 2.31.1