Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp4483172imb; Wed, 6 Mar 2019 14:43:54 -0800 (PST) X-Google-Smtp-Source: APXvYqxEqhHl2UqtI+7dC5iGWu0nj1gmKUHfh+L7f5lFDqYNG9LoV6eXu6DFbqeTTJ6pEvBBL2k+ X-Received: by 2002:a62:4414:: with SMTP id r20mr9629125pfa.37.1551912233943; Wed, 06 Mar 2019 14:43:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551912233; cv=none; d=google.com; s=arc-20160816; b=A0Oe98YZecgC5DipCX72RH3TPZC/o27OkhlCuQYbA36IA5BAAgs8SlngcJbJFdNPCT Y+JENdUPPlhzTwtKVuFtEXm/2hXwIbCaFJJMhh7FHi+tUPT9z21UU7ObJ7JVTe2PG16f g42xyeqnDyTLffcCF2ntZ/EDlRk3+iK3WPwsdu/51zmlRykSKzNUFuZLwZmaH0vULlKU WygpuCkkx3ZPFXkKNNETQSU96hx3PYxBkh2XMrSzzpPqbxcMEJfEvS9Gk18LRf6lFMbw IHPn4Ra5vnElb91j+67KaQxIpx4zLsVyI1N/CV4AE3VF95t9eTcPFEdUjMZU1q1shx76 QQpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=KJUL52BlkWwxQr6txemPO2EKl+Q7FVG9tm5DROzGoGE=; b=Pv0LqvjwQKAuKxLoEnrM/JMBSOH8ANvkUir2vVp6G5q8UIlYxiM5VO+MeD8Rfg//JG 1M+jnJ7C+13XvmrY/jPGzHg1cf2CfPUHlaxLJqieiN3Mtm731ItPbB3bD57o7NNKRA44 3HQa5hCg8OV+9mtJsJZL9YhjoomhBcBDDmHgPLIAg+CzMywsOm3Kv6Xcj5WwQT9rPr94 maxGF1DHWeay/CL0/qqg6bWChh8id+1E7NOba32Xk5bQ8+2qMPctwNLnecf6hF1x9br0 7HftV4b+XfNXP+H7boE9tEyydPj7W7olS3+u+taH9W1r31PcCqWivAa6rwyKzdNlqJrT 9cAw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a74si2641479pfj.20.2019.03.06.14.43.38; Wed, 06 Mar 2019 14:43:53 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726233AbfCFWnH (ORCPT + 99 others); Wed, 6 Mar 2019 17:43:07 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:60836 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725783AbfCFWnG (ORCPT ); Wed, 6 Mar 2019 17:43:06 -0500 Received: from localhost.localdomain (unknown [IPv6:2804:431:9719:798c:6bb0:a97a:4a09:e6d8]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: koike) by bhuna.collabora.co.uk (Postfix) with ESMTPSA id 36B2A282060; Wed, 6 Mar 2019 22:42:59 +0000 (GMT) From: Helen Koike To: linux-media@vger.kernel.org Cc: lucmaga@gmail.com, linux-kernel@vger.kernel.org, lkcamp@lists.libreplanetbr.org, andrealmeid@collabora.com, Hans Verkuil , kernel@collabora.com Subject: [PATCH 1/8] media: vimc: deb: fix default sink bayer format Date: Wed, 6 Mar 2019 19:42:37 -0300 Message-Id: <20190306224244.21070-2-helen.koike@collabora.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190306224244.21070-1-helen.koike@collabora.com> References: <20190306224244.21070-1-helen.koike@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The format of the sink pad should be a bayer mbus format. This fixes a kernel NULL pointer dereference error that was caused when the stream starts because the configured format was not found in the pixelmap table. Reported-by: Hans Verkuil Signed-off-by: Helen Koike --- drivers/media/platform/vimc/vimc-debayer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/vimc/vimc-debayer.c b/drivers/media/platform/vimc/vimc-debayer.c index eaed4233ad1b..20826f209731 100644 --- a/drivers/media/platform/vimc/vimc-debayer.c +++ b/drivers/media/platform/vimc/vimc-debayer.c @@ -66,7 +66,7 @@ struct vimc_deb_device { static const struct v4l2_mbus_framefmt sink_fmt_default = { .width = 640, .height = 480, - .code = MEDIA_BUS_FMT_RGB888_1X24, + .code = MEDIA_BUS_FMT_SRGGB8_1X8, .field = V4L2_FIELD_NONE, .colorspace = V4L2_COLORSPACE_DEFAULT, }; -- 2.20.1