Received: by 2002:a17:90a:88:0:0:0:0 with SMTP id a8csp4579343pja; Thu, 21 Nov 2019 22:13:06 -0800 (PST) X-Google-Smtp-Source: APXvYqxvGU0lT8tf/xAA2KEZKdao8JlxuMX05i1Arh8emoQV2HasybDwa3LTKaZs/11VIlJXtn63 X-Received: by 2002:a17:906:524f:: with SMTP id y15mr12110574ejm.3.1574403186754; Thu, 21 Nov 2019 22:13:06 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1574403186; cv=pass; d=google.com; s=arc-20160816; b=YaywaSPYxvS+hOK6CnfkupONBEyMzGBj6LRxWF87MfhNVTnw5u0osNXVB4tnwPNaUp 79Uip2wK4ZWZFdDRrB08q2y5kwrAm5KsB2O+A7grlzUJE87CX8afR2lTeZlfkox4mCvy +aYyMEK8h9deNkaVA8axjagIsIadE6Fyh4HqxOgOCKPW/GbOMiPUHIbJrsBCLUfuyKoD HvBh6akhoFElR/R6tKUBlOHodKUmPcKmbNpcVFU3ZONC8ijvjfD06nPUtsYnwIs/o5yV fUjss1k3g1q7lFQPIkTr4EbdO6r3X7RLlgTZsYaG8KP+J0u73g66jEf2KqhMzIGnvbu3 SCOQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature; bh=2W6Ixk6pIl6FrbjBwtxE0Y3Z5gzLc+BCXlLgoMKIhNk=; b=dFTqdfbQ+qun8OqpUgqrFDWFaY4Zutzv6RhXRtQfH/1CzlzHSAYOOS6yTwNHlN+DQ+ ixDDN2Wlras8miCquFOlRxgq7vUHLx6a9zx0PG5gAnkA/ekZ/YjojnyAvd9YRlVroPGH Q1nqwxROt7134OqMsU9QjB0GVv72jxTP6M9fBODsjcmEoGSyzuBZXKhDGMjRNCdfordU cUF9nr+CoToNIvsTAO49OTdnw0TbHHuF/R1e9H6KesuRxS3uKcLW2QcHKNY7fS4gyGX4 nP98LVE25y+VwrtuZoSHfynQ8B2jJRsqOVTYGkBbj/Odi3z7a8ztz3FwbxuLR/DR7Ewl KNNQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b="Wt/aytNG"; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.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=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id fy15si3546592ejb.432.2019.11.21.22.12.42; Thu, 21 Nov 2019 22:13:06 -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; dkim=pass header.i=@nxp.com header.s=selector2 header.b="Wt/aytNG"; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.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=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728989AbfKVGLs (ORCPT + 99 others); Fri, 22 Nov 2019 01:11:48 -0500 Received: from mail-eopbgr40088.outbound.protection.outlook.com ([40.107.4.88]:36225 "EHLO EUR03-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728706AbfKVGLr (ORCPT ); Fri, 22 Nov 2019 01:11:47 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=npZzroqu3fkYZS/TtW202OrhdR63KqgHdhH6qSaebkibP55jCzDq85casZztG2tSAz8FMuV+R+039iwxyzsCphi5mSsDVoghaJT6RYp9bB3NWndAQlEfsEf0QMlldXiDibh+JIJNsyn1ElGvESX27eQWFCk9sMn3SBSOVFNDBjPYfnbrVgZXexmceMPnJYMXx+EnMYHr6N+aDbx+IdMXG+TB1qOCDwazPpubthxXW/beoD42yJ7jqIfMJjA+/HhM1yKfDBful8KXMrQyt7S7m2FReFahFgcZlHx1kwOM+EoYQDKc6arJegfFfz/wf5/VpMX491R433LfY+COwLAj8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=2W6Ixk6pIl6FrbjBwtxE0Y3Z5gzLc+BCXlLgoMKIhNk=; b=PKAHjwZAmHFVNgcndln66cLtNK7go9rkMf9/A+OIQN4rf2f2ETk/UOQSW9d0BF2D8BbSLBzCRup4J8vGsMQPNIY6IG/t1r4Kg26lHLLBVtO3hJ7PqS8+Fg/lwSY3e3CSpIfpHjNSHfVxtp2wNOGSRaAqcD25WmYaQqkmbdZ2zY6p9uBQpf3Ou2joa/OtH46caTA84AEixkmhUWmCi9vHguHsiOQZOQGfw8k9xlbq54GyPf9eLZkVEdo0HmCUMm4zu58V4GnXoIJNriCHAqPWiVs0RYKfN/YT31rkUhr4ugkPId5ANYfO5ccWXFGDUWuy75Ab5aoPZouOEubyE4xwrg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=2W6Ixk6pIl6FrbjBwtxE0Y3Z5gzLc+BCXlLgoMKIhNk=; b=Wt/aytNGFTQvLMCUhMThBRqZyEQ86qoj5u5GA8kb6W9egW7SocR5/LeXkcqjO7vwR9ye/dZxSVdWJhSQiDo6BoTRPhFs3Jd4/QH/iF55lWMsyFp2tvC52hHMRjSPlu8xeHWFeuKTMqXSU834h/5eiN68GhpZu6yFHRs0v0PwaUE= Received: from DB7PR04MB4490.eurprd04.prod.outlook.com (52.135.138.150) by DB7PR04MB4027.eurprd04.prod.outlook.com (52.135.128.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2474.19; Fri, 22 Nov 2019 06:11:43 +0000 Received: from DB7PR04MB4490.eurprd04.prod.outlook.com ([fe80::4182:4692:ffbd:43a0]) by DB7PR04MB4490.eurprd04.prod.outlook.com ([fe80::4182:4692:ffbd:43a0%6]) with mapi id 15.20.2474.021; Fri, 22 Nov 2019 06:11:43 +0000 From: Peng Fan To: "sboyd@kernel.org" , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "festevam@gmail.com" , Abel Vesa CC: "kernel@pengutronix.de" , dl-linux-imx , Aisheng Dong , "linux-clk@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , Leonard Crestez , Alice Guo , Peng Fan Subject: [PATCH] clk: imx: clk-imx7ulp: Add missing sentinel of ulp_div_table Thread-Topic: [PATCH] clk: imx: clk-imx7ulp: Add missing sentinel of ulp_div_table Thread-Index: AQHVoPu2X6fv8TWPzU2zaNGhXWqkhA== Date: Fri, 22 Nov 2019 06:11:42 +0000 Message-ID: <1574402986-11117-1-git-send-email-peng.fan@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.7.4 x-clientproxiedby: HK0PR01CA0067.apcprd01.prod.exchangelabs.com (2603:1096:203:a6::31) To DB7PR04MB4490.eurprd04.prod.outlook.com (2603:10a6:5:36::22) authentication-results: spf=none (sender IP is ) smtp.mailfrom=peng.fan@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [119.31.174.66] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 8b4031c6-3cc2-470d-8b33-08d76f12d854 x-ms-traffictypediagnostic: DB7PR04MB4027:|DB7PR04MB4027: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:873; x-forefront-prvs: 02296943FF x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(346002)(366004)(39860400002)(376002)(396003)(136003)(199004)(189003)(44832011)(2616005)(99286004)(14454004)(2501003)(508600001)(386003)(6506007)(102836004)(4326008)(26005)(186003)(2906002)(6116002)(3846002)(50226002)(5660300002)(8936002)(4744005)(316002)(52116002)(81156014)(81166006)(8676002)(54906003)(110136005)(256004)(14444005)(6436002)(66066001)(6636002)(36756003)(2201001)(6486002)(305945005)(86362001)(6512007)(66946007)(66476007)(66556008)(64756008)(66446008)(71200400001)(7736002)(71190400001)(25786009);DIR:OUT;SFP:1101;SCL:1;SRVR:DB7PR04MB4027;H:DB7PR04MB4490.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: UM5s49S3wsGfZ+jzxZ50FQrxJsCmA8rUl4RFXbW6NAPhQpnJmbILM15wr7T6BJEVfyTShOr/gh/f6/9/HyGK1QZURRy5lrnPgCHFb4CYzD4CoErvSwYy6Qdk/ekdYFItQkD4WtHKA73Us5enNhEt5m6NTCuthjd/Cpbtyu5+kv7OMRcoM0i8eRR8/Gvz6W6EChdAQeDISzaxthq6D7W5xH5xhB/S2VecwnKW7UoghuvI3P6yfgHexihdav7nBy2GiEudJcqa9TUy1AnBXjLG8r3o2JtolzY5gWUK02E5B2dKbFGCUbDLCgbwKBwWgXOH60WpO46o4iEbMWO4M5kxikAqcR4J4EAmHLxupQg+52lo8TP4ie7oIGHj7wmwP9YPjrk0awq9t9MSQxUbJT1E0+uRdsKCKeM0RISLM0KdC3ilSbe/2LFge9XE7fMV2ovI Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8b4031c6-3cc2-470d-8b33-08d76f12d854 X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Nov 2019 06:11:43.0595 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: gMdDCiDmJFmOASj8Q9Qq9OnXPvAOCfb0xNJJVRuuRu29rNZkTjT3GO+QFhecQDe90sV+M3gd/mg4bSHSbp8WXw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB4027 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Peng Fan There should be a sentinel of ulp_div_table, otherwise _get_table_div may access data out of the array. Fixes: b1260067ac3d ("clk: imx: add imx7ulp clk driver") Signed-off-by: Peng Fan --- drivers/clk/imx/clk-imx7ulp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/imx/clk-imx7ulp.c b/drivers/clk/imx/clk-imx7ulp.c index 3fdf3d494f0a..281191b55b3a 100644 --- a/drivers/clk/imx/clk-imx7ulp.c +++ b/drivers/clk/imx/clk-imx7ulp.c @@ -40,6 +40,7 @@ static const struct clk_div_table ulp_div_table[] =3D { { .val =3D 5, .div =3D 16, }, { .val =3D 6, .div =3D 32, }, { .val =3D 7, .div =3D 64, }, + { /* sentinel */ }, }; =20 static const int pcc2_uart_clk_ids[] __initconst =3D { --=20 2.16.4