Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp3856084pxb; Tue, 7 Sep 2021 09:00:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx+eDms7t/D04kYWEdBEocGX7SvAaZ786FtDuc2cE5hSy+HFl633ktXKs1/SM9XxVFJnx/X X-Received: by 2002:a17:906:a018:: with SMTP id p24mr18889980ejy.349.1631030443887; Tue, 07 Sep 2021 09:00:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631030443; cv=none; d=google.com; s=arc-20160816; b=wOHm/wg+nAJ146IPCX0Tr+GvToaImMaju+0eSvtmEZDNF/lW+1SGNDscMCY9sR/XE9 6qZsdTHO1OqKHRJqfSQ2wOVIIVCmGvt5hV2VH0pgffz1qrsaqU42lokzcpzjvWDGIppx LT+nic6jgNnLKvZGvXQNosCqByTCiUej7jWOOzpG5xT9cGVA3CzWDqk9InxLKk0LK2MN J5KkH3WWwLUQTm82fn/7tvLuemhiIEjC6A3kpvU7TT21HwXUNTwsNbOcxPndZF0ob8uu 5tuUatgf/NLRQLYK9XRFKjsOCnuJzDL6YlgkVBuLIJHxDBADBDNrfixPzAhQRUpbqLFn gk5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:message-id:date :subject:cc:to:from; bh=/4deJy5X02tv6JjoteG7UnkuajLMFhpa4mE7ouGYhhw=; b=nu/O9TK9hu067pxTd/E6x0fNUGG168AnGIH9TO6/TOV1KWsSLP1brpakU9gx+Isiw+ nendXqd5ClEaIOouA32vsmekMcIyD9GLRkEpA2xCkdtGfVmUccmjmhiH00fv2zRtks+g ZNeD6KZssYRH3IWhq8AiUWPcqRDFtWQy2Y6lHYupF3EAzxM9Nyj2PhGAdGRF59BjOvWN Jh3z7z2FqlX2xgFbhhN0I0aZSNIMe6XxxgxphYmB3u/Jq4VReg5ahUCZOCeg4KdvPAiE jEfGhNj2hNfZSi8hT0iIXvClJF6ch/3Z4GgXcWcNAnp9ea9td6WySJ/8C6qC4wjqqVNQ uMzg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=puri.sm Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id js2si10126899ejc.576.2021.09.07.09.00.17; Tue, 07 Sep 2021 09:00:43 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=puri.sm Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344270AbhIGO5z (ORCPT + 99 others); Tue, 7 Sep 2021 10:57:55 -0400 Received: from comms.puri.sm ([159.203.221.185]:41528 "EHLO comms.puri.sm" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231362AbhIGO5z (ORCPT ); Tue, 7 Sep 2021 10:57:55 -0400 Received: from localhost (localhost [127.0.0.1]) by comms.puri.sm (Postfix) with ESMTP id 8C9EDDFA96; Tue, 7 Sep 2021 07:56:48 -0700 (PDT) Received: from comms.puri.sm ([127.0.0.1]) by localhost (comms.puri.sm [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JEFBl3aCJ9Q9; Tue, 7 Sep 2021 07:56:47 -0700 (PDT) From: Martin Kepplinger To: ezequiel@collabora.com, p.zabel@pengutronix.de, mchehab@kernel.org Cc: linux-media@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Martin Kepplinger Subject: [PATCH] media: hantro: Fix media device bus_info string Date: Tue, 7 Sep 2021 16:56:37 +0200 Message-Id: <20210907145637.3161395-1-martin.kepplinger@puri.sm> Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Even if model and bus_info currently both are 32 bytes large, use the correct array size for bus_info. Signed-off-by: Martin Kepplinger --- drivers/staging/media/hantro/hantro_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/media/hantro/hantro_drv.c b/drivers/staging/media/hantro/hantro_drv.c index 5f8e13eeeccc..f23fc14b3562 100644 --- a/drivers/staging/media/hantro/hantro_drv.c +++ b/drivers/staging/media/hantro/hantro_drv.c @@ -980,7 +980,7 @@ static int hantro_probe(struct platform_device *pdev) vpu->mdev.dev = vpu->dev; strscpy(vpu->mdev.model, DRIVER_NAME, sizeof(vpu->mdev.model)); strscpy(vpu->mdev.bus_info, "platform: " DRIVER_NAME, - sizeof(vpu->mdev.model)); + sizeof(vpu->mdev.bus_info)); media_device_init(&vpu->mdev); vpu->mdev.ops = &hantro_m2m_media_ops; vpu->v4l2_dev.mdev = &vpu->mdev; -- 2.30.2