Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp630070pxb; Tue, 2 Feb 2021 13:44:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJz7jkuVvXDvEb41X0idqVl5dwQXR76Wc9ne0Eh2bRPcec8bFPFBtPvR/AuvuB2suEzD4atF X-Received: by 2002:a17:906:8516:: with SMTP id i22mr47268ejx.200.1612302271255; Tue, 02 Feb 2021 13:44:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612302271; cv=none; d=google.com; s=arc-20160816; b=UgNnaOetIIWMEXPeBeSqbc2sPEet0lE4SnTA7g5eTl1Z8heBSlyCpQ2QKdL2SybJdW k/ptDug5wcqj8CN+JMQmLHDia5H1AW1/p4tZKilNxwXUjy8jpKv3FJpCD3lmkcagMKE6 kOQv7d+LckhrhQ+QTPlvPQo1Sjbx3DWIKmQzy1H1/kBbU5731fUQCQFQfFtXNjkwuO4q ejNYeP4bfi363bGRXg5FRj0gfXN3W5RiGKN8LC7M05S3QmicNxcWBo4t1Thcxjzvwk3D ZARJtuKfqRCvNFJCNdgEqZkMBGCYxc7V9xLsj2AWgw+g9q6NXnhMG5ZtTwTbUXxAZ7aP /WkQ== 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=chhodVVVef5YUIXnEk4FlnesIcA4ipE8NFTgn1tEO5o=; b=ItZSVAfQmwRC+Pb5B9AIYjEbJ1oGDQ2gz6enaf9JtSf5VgWKWQNv6i1azfWNh4nEwO uSmCIXx6lYwLXRNbPyUP1Pn8lOdMMarBvGzq8QT8ufYhtQUrOBb7+MkTOAOpLDNcPRYe kg2ZmgRaYNETtrvy5pJzz2x3V6Fmx7IpoxOpOtpud5vy5jsgMM9bh/edK3pfP1n0PkEK uwZS9RNJO2OisdcK1RsOvHt1oyauPRVqH5EqZ7z0LbeYUNDv0VHCHkLK55PU8DEfRyPU K3qyAkpwLShIOrNHEIkKidg8ntx/jgu5WT1LAcoTLbF7eyCLBXR1LSD3DiWrNyGdVbBJ haYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ftsxwKH7; 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 bx17si3177305edb.578.2021.02.02.13.44.05; Tue, 02 Feb 2021 13:44:31 -0800 (PST) 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=ftsxwKH7; 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 S232758AbhBBNtS (ORCPT + 99 others); Tue, 2 Feb 2021 08:49:18 -0500 Received: from mail.kernel.org ([198.145.29.99]:36462 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232904AbhBBNpS (ORCPT ); Tue, 2 Feb 2021 08:45:18 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 19E7D64F85; Tue, 2 Feb 2021 13:41:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1612273269; bh=6XzYNaFAg2Dv3QRnWNvsuF8NFhLJvOCLS8ni44TLn3M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ftsxwKH75HhaJtsb6THCZ/E4guXz22429k+Tmr42EUCQ1rlCjt8/lgkZDdHA+dbRv TjUPj6ZKg/JQwjApax6XsMGI7BNF7LqKUIOXE/tOj6NfGICYtZwJwjwiQRppLPh/MV 8t8sKpko3m9glN8JaBv9Em8htq34rVQ3vWe0raqE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Ricardo Ribalda , Hans Verkuil , Mauro Carvalho Chehab Subject: [PATCH 5.10 012/142] media: hantro: Fix reset_raw_fmt initialization Date: Tue, 2 Feb 2021 14:36:15 +0100 Message-Id: <20210202132958.208153459@linuxfoundation.org> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210202132957.692094111@linuxfoundation.org> References: <20210202132957.692094111@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ricardo Ribalda commit e081863ab48d9b2eee9e899cbd05752a2a30308d upstream. raw_fmt->height in never initialized. But width in initialized twice. Fixes: 88d06362d1d05 ("media: hantro: Refactor for V4L2 API spec compliancy") Signed-off-by: Ricardo Ribalda Signed-off-by: Hans Verkuil Cc: Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Greg Kroah-Hartman --- drivers/staging/media/hantro/hantro_v4l2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/staging/media/hantro/hantro_v4l2.c +++ b/drivers/staging/media/hantro/hantro_v4l2.c @@ -367,7 +367,7 @@ hantro_reset_raw_fmt(struct hantro_ctx * hantro_reset_fmt(raw_fmt, raw_vpu_fmt); raw_fmt->width = encoded_fmt->width; - raw_fmt->width = encoded_fmt->width; + raw_fmt->height = encoded_fmt->height; if (ctx->is_encoder) hantro_set_fmt_out(ctx, raw_fmt); else