Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2195683iof; Tue, 7 Jun 2022 22:52:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzQsitMbFBbQcZ0w2eSi6ZxxaEvSvD/YPV27PNcRoO8OJMFdd3XNky/c8gCorlrwkciiXxb X-Received: by 2002:a65:6bd6:0:b0:39d:4f85:9ecf with SMTP id e22-20020a656bd6000000b0039d4f859ecfmr29260075pgw.336.1654667539326; Tue, 07 Jun 2022 22:52:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654667539; cv=none; d=google.com; s=arc-20160816; b=lqWt5oxKYrArP+oMu1DtRUFLwh2VQI9PL69zquz+Jl3q9rQYGBzn+UBRh1YXatPSsw 5O+lFPNd/fgWMr8ViMl8J5l4RT7DC8jvPBMBVWj26XoiB6kUv57lwKsr630eUML2vmIM VEazU6UfADvziGrRYgmokKHZgCquoaNp+pjztRZd7I+RkqxQiZt121AvHS7xtrwR1LRU Ae2UUBLCVEuuzXSqPD4OqzWdCK8C1x2WlmsWxUzmca+oTAuwXIXDpx4Mr0ybM7MB9k4l 71FOq3rkkZnCeM2AFNf0GuRwFRwonBkDY0onPMcm1S3xktBoMA+HSZJPsi2o9toGLif0 HtPg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=wtrmRqhch76xfgtIaOTE2Cgq2InuOiptV+u7ft1EKTc=; b=B50vh8yCrGT5UUVxkgyVW9wr4njoor64oSK1W0PvNe8VQua+cIeKyIIiq+Kv6kCL46 hgEG9xxxk5TztvekefTG7AiEe6gZ7pmYVj088JWRaY2Dz4wLhh20ttq8iHIMo/1fRhR0 HZcqMPxYzbdUY06onqFrws20RVwhi7e81XZXeM8GISIYCplxYMkYTqecIADAlVJddoXZ q1eA6SP0QraGo1LSkBpt7gmetq7RouoMRd7TPTtqlhA5yOOrl3hv4EoSs1fhEm1WjTx4 wExzk532j4XlI6qd1zxKxF0kCnwz0+ehMFBwJd0dFaf22vKgPC+8iVVJkahreFyQUJbP aEsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="Ql/LTbXx"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id s144-20020a632c96000000b003fcffa7c80esi20395692pgs.457.2022.06.07.22.52.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 22:52:19 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="Ql/LTbXx"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A6A6E403600; Tue, 7 Jun 2022 22:19:06 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1387562AbiFHAug (ORCPT + 99 others); Tue, 7 Jun 2022 20:50:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1381708AbiFGVop (ORCPT ); Tue, 7 Jun 2022 17:44:45 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 33EF0234694; Tue, 7 Jun 2022 12:07:23 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 57E5A618CD; Tue, 7 Jun 2022 19:07:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6AD02C385A2; Tue, 7 Jun 2022 19:07:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654628835; bh=dRHqePMObXR8eJs4K4Tet0x1pgou7i/fYauwc8JO4Rc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Ql/LTbXxedhL9fgdqVNtFB69MQwP7+FONgPSD32zeVWWBlKLBOesk2dUDnzm8Og4W 4wHaW+XkghoccG/K5G6is6h/hOq5CQRcuQr4DibhnkCX+yJlSFwqmiMglUDr9PB6ki Odsh6521eGdJHCnEWBkUO8xwIdfeFmk4QSGRD5Hg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hulk Robot , Yang Yingliang , Sakari Ailus , Mauro Carvalho Chehab , Sasha Levin Subject: [PATCH 5.18 474/879] media: i2c: ov5648: fix wrong pointer passed to IS_ERR() and PTR_ERR() Date: Tue, 7 Jun 2022 18:59:52 +0200 Message-Id: <20220607165016.638244324@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607165002.659942637@linuxfoundation.org> References: <20220607165002.659942637@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Yang Yingliang [ Upstream commit a6dd5265c21c28d0a782befe41a97c347e78f22f ] IS_ERR() and PTR_ERR() use wrong pointer, it should be sensor->dovdd, fix it. Fixes: e43ccb0a045f ("media: i2c: Add support for the OV5648 image sensor") Reported-by: Hulk Robot Signed-off-by: Yang Yingliang Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Sasha Levin --- drivers/media/i2c/ov5648.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/i2c/ov5648.c b/drivers/media/i2c/ov5648.c index 930ff6897044..dfcd33e9ee13 100644 --- a/drivers/media/i2c/ov5648.c +++ b/drivers/media/i2c/ov5648.c @@ -2498,9 +2498,9 @@ static int ov5648_probe(struct i2c_client *client) /* DOVDD: digital I/O */ sensor->dovdd = devm_regulator_get(dev, "dovdd"); - if (IS_ERR(sensor->dvdd)) { + if (IS_ERR(sensor->dovdd)) { dev_err(dev, "cannot get DOVDD (digital I/O) regulator\n"); - ret = PTR_ERR(sensor->dvdd); + ret = PTR_ERR(sensor->dovdd); goto error_endpoint; } -- 2.35.1