Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp588495pxy; Wed, 21 Apr 2021 09:56:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyDzSOetjRZKiTc8VhsVYj9Fa0TTAG3EsBT4/snzp5avuwnCwlk+fyhCjv1zC6x5VS1tANB X-Received: by 2002:a05:6402:8:: with SMTP id d8mr39035111edu.368.1619024193924; Wed, 21 Apr 2021 09:56:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619024193; cv=none; d=google.com; s=arc-20160816; b=aMmu+FsIhiHBwIJNuPepz4OWeNal8MfOjjPjgI01sgQwx9yMvboJ3QN4ax4lG0NOT4 UMe+xDVybRsSTs8tvjm9SEjEkJig3OYZmNHlVAgtTs2Em0atT3X4QeQA/nuFuDn11oEI AghvWDst2zKzv5Mqr6DZJ3YGswQd9S5huT7pMao/phZ3QPukqF4HNpw254zHCQdyi5RN i2ScBx4zw9zvht9i8JVX6bZYVrnyiSweV8S/Y3qC+ax20mEVKTzBGPS+EPMbFheUABcn dm+mtpdAjaASW0qg8doJ0j3ru8xSB8VJ/4LUOthrEQxrJzGi1t22A6IVdSCttsfsOjPJ d+sA== 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=0lxk837K7lV375/5wxFvm8tnovgWWuOKXXf1uFC+Imw=; b=iBzkyEHDHBroehY2HRRARSSMEqLIBtiGhPOmOsgXh/6KmvT3mp+mcssPpBVOJKTiG1 yxjERyvpI7i9Fjwexf+7N357T+jtUtnbEYT+LG1sbPcmQ7KtiX9HQ+5AWepEHmvV89Bu O0Fc3AALtXROM0q9wD69IZ4iE9yyMmzrdnckePJMmKaJWFtvV6vH+N+S4MM5OfEzsIBd 2hegNYuxNCmsAgo3dwtl5hYg8Vs/lBT5tPknuBtEPYsJ4PX3qlVq7nC74C28FuYXSE87 vCM4YwI253x3rMj0LQ3PSB528AkY1TPPyGPIfV1c5WNL5rbOcl0YJN6tdAXcsS8JnJxL QuCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=d7V8Kynl; 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 u14si2231011edq.318.2021.04.21.09.56.08; Wed, 21 Apr 2021 09:56:33 -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=d7V8Kynl; 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 S242903AbhDUNQY (ORCPT + 99 others); Wed, 21 Apr 2021 09:16:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:52962 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242525AbhDUNKO (ORCPT ); Wed, 21 Apr 2021 09:10:14 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 550166143B; Wed, 21 Apr 2021 13:09:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1619010580; bh=rJXyx2n989rVeF0RwSfMzLjGMOzQiDJzKpDgh60DZWg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=d7V8KynlSlqYTFnSnhDEOEkglR/xdL/A0bKOjc4ZMe6PJY7s7zkfJjpZMap17mIEt AQM7hFj6zrf9Ozx/LqhqMtpV15zdebucbpgd+igGB1Z3ienvEfoEwIxIS86+LWpR21 NTIICQ1YEC6s9ATnLS1GTnI6LKbR2GnkMdS+7uuY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , Kangjie Lu , Mauro Carvalho Chehab Subject: [PATCH 152/190] Revert "media: usb: gspca: add a missed check for goto_low_power" Date: Wed, 21 Apr 2021 15:00:27 +0200 Message-Id: <20210421130105.1226686-153-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 5b711870bec4dc9a6d705d41e127e73944fa3650. 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 | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/media/usb/gspca/cpia1.c b/drivers/media/usb/gspca/cpia1.c index a4f7431486f3..d93d384286c1 100644 --- a/drivers/media/usb/gspca/cpia1.c +++ b/drivers/media/usb/gspca/cpia1.c @@ -1424,7 +1424,6 @@ static int sd_config(struct gspca_dev *gspca_dev, { struct sd *sd = (struct sd *) gspca_dev; struct cam *cam; - int ret; sd->mainsFreq = FREQ_DEF == V4L2_CID_POWER_LINE_FREQUENCY_60HZ; reset_camera_params(gspca_dev); @@ -1436,10 +1435,7 @@ static int sd_config(struct gspca_dev *gspca_dev, cam->cam_mode = mode; cam->nmodes = ARRAY_SIZE(mode); - ret = goto_low_power(gspca_dev); - if (ret) - gspca_err(gspca_dev, "Cannot go to low power mode: %d\n", - ret); + goto_low_power(gspca_dev); /* Check the firmware version. */ sd->params.version.firmwareVersion = 0; get_version_information(gspca_dev); -- 2.31.1