Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1096668pxb; Tue, 26 Oct 2021 02:45:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzOBj4QGPfivzKDLH0KdXjIqbz6NC8VUmSCuriJTc7Q+IZFiK8fkbh7KjPkhC6eW7awBMJN X-Received: by 2002:a05:6a00:10d2:b0:44d:f03e:46c7 with SMTP id d18-20020a056a0010d200b0044df03e46c7mr24257292pfu.0.1635241507229; Tue, 26 Oct 2021 02:45:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1635241507; cv=pass; d=google.com; s=arc-20160816; b=S1rmtiW7XvwHMvNSJOltBWdqxr020GzOiQw1AkIpWM9SnZrtfHumEoiq4zqH9gQ1L7 hwJUz+GXXDNgXWaaMqR1apKUdR6NzpyBZEzO5S+xuoTfqswaf+tJEoGzkGVHT83pzsuq i6HGxJAPpOBPU0RZ7rzOJmONOsjsEfvURPYuFYDPhcdKcUSyxamrdk2SO1pwGcYYTbz7 fUswLvRDDN9CREgcDsm/yEFZcJvYb6bbKLYv9lK6rWobmhm+0KM0RYtefdHH6h15sVgy /hsnPWTagwsCjgFDdiGAt/aTP4br7KmIbfXYZvWrGwvSWbGcSsK22QksfDwCAKmFJ8fu A/Pw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature; bh=n1Y7XvKR0qNJRCxNnG8PpiRDKpgtgZMTu2n3vSIvzFs=; b=wltZ0c2IQaQpkdyKuNFydQW9D50uprNHoz0a0/V+ijUwHaUOFvTekoiRsEYnhzNWUh vj9orebu3M+sYwZnItfZyvfrzrX+ADZeCtKrNE1RPuEJHEx212ck0JexxOT7mCY9bjwN DlYbBeh/8c8M2X/1Mw+GcQxK/kt6KCM1TBy+EO9tJJwRD94wDpKwjeZenKLoxl9tziUL kHK1RvxeNUjuuO/9SsI1DY9VGU8Kwj9MosvB13maKUme8Ddc7D/3Zx99BeJt+ouKNa+0 IeTywTs2F6VLgkxG+zZPT6SDe3ynMtXQY5QJU4B+aqdJ+c4AZcW1yrSlXXMVNc/x1UQS zJsA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@connect.ust.hk header.s=selector2 header.b=Dv9Bfzez; arc=pass (i=1 spf=pass spfdomain=connect.ust.hk dkim=pass dkdomain=connect.ust.hk dmarc=pass fromdomain=connect.ust.hk); 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m5si4842043plx.300.2021.10.26.02.44.53; Tue, 26 Oct 2021 02:45:07 -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; dkim=pass header.i=@connect.ust.hk header.s=selector2 header.b=Dv9Bfzez; arc=pass (i=1 spf=pass spfdomain=connect.ust.hk dkim=pass dkdomain=connect.ust.hk dmarc=pass fromdomain=connect.ust.hk); 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234115AbhJZGtl (ORCPT + 99 others); Tue, 26 Oct 2021 02:49:41 -0400 Received: from mail-eopbgr1400130.outbound.protection.outlook.com ([40.107.140.130]:8514 "EHLO JPN01-TY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S233033AbhJZGtk (ORCPT ); Tue, 26 Oct 2021 02:49:40 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Fte9GTixamVU2cSYQExRRqOdz/VNMpriziDlpeJVWml1JB7QTUPx9ORBIrlen3AuE4D0bqlgTegUe9geWyXItA1scY/yGYKlIdUuUVQrZIwnIOp+3TYFwVfylg2UQQ0eR8cpMgMgnFCzSwJ2Ss++D1zGUJtYKRYsHFflxusx1tkduditF18+DNQYYECCpC5O0aQqflTN3fG1ggZ1WpFiYLGnY+tFa4hJunaU54xRoedjI6bB1PH8HWiJHw1pSMWNsB2XOdIDZDex6rrDWpM8jvIJmFjgQ1ecL9gv+9Qw5AcvT+NE/fbmCSU+Bt0e9PqJYCxustj2WP/l/vGj5m1fqg== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=n1Y7XvKR0qNJRCxNnG8PpiRDKpgtgZMTu2n3vSIvzFs=; b=FhL2qxPBbbHcoRXkydBTwlclLbW4fsbhKz0lVISdmUvA0el1x2JIafFARttYB5zSKNbHRJzqt2R24jwP5znsu5bpcpzNX+bJmPhID0VY5qenuFQD59UG9JvLLu36d4DMljwYlQiW8828CIwus89JUAzn5GUSzeLHEl9vZXSUZCctOdMaOZJTbZP2gn9IW8LUnfm55gKuLceY1/lwG3X1TOvC44o+ioozMrfLjrlidIxPdmQIrnKMsLsgxm6HBCCHs6pAkbPwUE9X0wDKaYP91ScYZkVJU1mxE3ASQZ6iAuMEWaDGj+3CXo93iBKDdF93bHVZCLeNvAtLlvSJspTZYQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=connect.ust.hk; dmarc=pass action=none header.from=connect.ust.hk; dkim=pass header.d=connect.ust.hk; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=connect.ust.hk; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=n1Y7XvKR0qNJRCxNnG8PpiRDKpgtgZMTu2n3vSIvzFs=; b=Dv9BfzezlCVTxxYgdadBsZH9BYNDWWclmmCTiL75JSCKWyHIiNLplYHeTfN7SaJ9fbQggrmHjAAV5Xvk0HQn8gtJiYy6SP438z9Yudj/TMychR20F4gJZxZ13inxrnZvZcsIBC/Fn+nxAW9owso/d1i9DlXE6/gQlsXRYx9ClT0= Received: from TYCP286MB1188.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:b7::8) by TYCP286MB1332.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:bf::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4628.16; Tue, 26 Oct 2021 06:47:15 +0000 Received: from TYCP286MB1188.JPNP286.PROD.OUTLOOK.COM ([fe80::c0af:a534:cead:3a04]) by TYCP286MB1188.JPNP286.PROD.OUTLOOK.COM ([fe80::c0af:a534:cead:3a04%7]) with mapi id 15.20.4628.020; Tue, 26 Oct 2021 06:47:15 +0000 From: YE Chengfeng To: "mturquette@baylibre.com" , "sboyd@kernel.org" , "mripard@kernel.org" , "wens@csie.org" , "jernej.skrabec@gmail.com" CC: "linux-kernel@vger.kernel.org" Subject: drivers/clk/sunxi-ng: suspected missing null check for callsite of clk_hw_get_parent Thread-Topic: drivers/clk/sunxi-ng: suspected missing null check for callsite of clk_hw_get_parent Thread-Index: AdfKNUoa0glysWrhRPmS8LHgDDJ0YA== Date: Tue, 26 Oct 2021 06:47:15 +0000 Message-ID: Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: baylibre.com; dkim=none (message not signed) header.d=none;baylibre.com; dmarc=none action=none header.from=connect.ust.hk; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 30ce4c9d-f945-4561-c67a-08d9984c7254 x-ms-traffictypediagnostic: TYCP286MB1332: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8882; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 9bGAMwz3WobRSxwIkt7TPJCH2OkUuIuHSlZLsryt/h0ZC6dVvSFkCVzbxrWPFkfXGQkbkV8rgpRCXS5YQbjIzZ6cVu8D73lJL7v3E9e2QmHjcxTTdOIiRB986PiO7eyzmsdsmJOLsDr4njOQaifMmL5GwTIHfOz9dd7QkACBXdUvy6Yopz8fAf3dkbN/FPKuuI7sElAhvcMDDgNUsD/MqsENYYNkW6qtMkUMVsRpvWq413exV4NxdhyqAbbMoEBXW+pPxJofxkYH8K8B4f//H6R+yAEz5LEbMIYGuUTor3UiOROsz3iL7N9Nbg07x9QN8FIlSuIlDlFGYi/78lrv3sBLl51RN5bT9MtDhF5/p+GgFIDkQFtO5DBHYSCz5/9Rm0YaD4ZaiNryvz7mEEvbRlYCRUnAnYWaznNvI3fAB8o3ujGTdCskwu9cC2zmzbIQdb3EISce7rcbcflELyi9SkwNPhxpt7KclTHtnx6T3WfIcf4hUnl7cGMZ5/rUUAh77z7fW0SPEKZTGR6jhClIuxDxz6H5h9SUtn14uPLji58rrbnqkw7yVc1lvqdNy+zyhCUYGaWFxgvZLUZOnQmKqbzxGS409ImDy1lJob5vBTup6abDIAMKWPw92Sf2GUUwTesRZex64jLkYFz2ehkjY7cXmLhS9pY/UCj4NOiin3i5shqOrvc704zzSVWKs5vpkEvYv1+bJ1Hs6LLc5WFJl+SQI+kHqOSDlsNBQjeKWZD19SvibctylOAZSADEqQqihMljN4LLAZyvp0c0d1PKSu2sPPzGTmHpkO/45a6Sn7XSR/LmoK3ns2Q9gr3A9fHIiD/TeLPP51281SmAb0+a7A== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:TYCP286MB1188.JPNP286.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(4636009)(366004)(5660300002)(7696005)(55016002)(966005)(508600001)(52536014)(9686003)(6506007)(26005)(71200400001)(38100700002)(33656002)(8676002)(186003)(83380400001)(4744005)(110136005)(86362001)(38070700005)(66476007)(66446008)(64756008)(66556008)(4743002)(66946007)(786003)(316002)(4326008)(76116006)(122000001)(8936002)(2906002);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?lJ12cS3+Y5lGoQsmbx9YQRWpa4aEQlLLl+iiHX64IiRB5uMWAD3qvw/CqdjK?= =?us-ascii?Q?RrwsiFlv/5efSMS0YptZLk3QNwr5vzfCKf3iUz8tPtY9BK95zmKWneCDrGii?= =?us-ascii?Q?pnf/kl3jg8bqTFbuKTu8DLrKr5odytuIMPX73oewYXDvOTFDlFYlJNkbuuRQ?= =?us-ascii?Q?4SMbzYPGc9eWxZHtP8YB89IaS5OzAUOtnI/Z1q6dfB+wkoSuyoYptdEegwpd?= =?us-ascii?Q?am90ZEMRWN7eqBsUS+mFKsqX3P3NVSWr/8mI455FzgwfAr7GxcymqDsc3oIu?= =?us-ascii?Q?aOIiPU+4dto8/TqQ+qoVsRqOn0UYohTAoScLh1afWEa/kKQ2h3pXHO9iFvFZ?= =?us-ascii?Q?/8QlfNQ+5xV29uXKhCheSCqYxhdG/dv7LNgMFqpygoaszJlDlF3VHHPfugs/?= =?us-ascii?Q?gYfwbZNjUFLwHfAhdtG80HnwaKu85JBc5OrFMIkkPITbK9ytSp5nx64loQxP?= =?us-ascii?Q?hj+KJnkfEOxR71Oo16mYRuZPmp/ZeVIC7fW90WvQOPxWlG6JbqEdDiJBrRwy?= =?us-ascii?Q?aKFoI0gF28xUhJCGhKiKl0EwCXU9pgVhRZ73IdoV/S8B7c3xU/prC+Q9lJhg?= =?us-ascii?Q?4asf+5Z5vX7Uc9Tvb2+dYYJfhuJO5clH5wAhp3soB3siGXISmijn5vqgvE7s?= =?us-ascii?Q?bTs556I3Sh5cxj3dybH0yQ3uMNl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q?PFOBzdRlTgKO6p2leJUfzsstHBc7XaZVsW32Zt1c0WiXHH7/xpqjA/ZgWz6Y?= =?us-ascii?Q?w5YMiNQSBfRwHxyWDNAqHyY=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: connect.ust.hk X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: TYCP286MB1188.JPNP286.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: 30ce4c9d-f945-4561-c67a-08d9984c7254 X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Oct 2021 06:47:15.0430 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 6c1d4152-39d0-44ca-88d9-b8d6ddca0708 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: uRHDfDFEPLymYV1IMFJo7TgRruBuy2BcOa/yDWDiQwlZSuVyveLuNazvQTQWMNHfwyZG6I+O+Gou+cv/hIgj6Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYCP286MB1332 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, https://github.com/torvalds/linux/blob/5bfc75d92efd494db37f5c4c173d3639d477= 2966/drivers/clk/sunxi-ng/ccu_gate.c#L101 https://github.com/torvalds/linux/blob/master/drivers/clk/sunxi-ng/ccu_mux.= c#L93 Our experimental static analysis tool detects a null-ptr-reference problem.= It could be false positive, we report this to you just in case. In these two call sites of clk_hw_get_parent, the return pointer is not nul= l-check. We are not familiar with the code, and don't know whether it would= be a potential null pointer dereference problem. Would you like to spare s= ome time to have a look at it? Thanks so much, Chengfeng