Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B4B72C433EF for ; Fri, 12 Nov 2021 01:17:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9A42A61107 for ; Fri, 12 Nov 2021 01:17:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234213AbhKLBUZ (ORCPT ); Thu, 11 Nov 2021 20:20:25 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:50424 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S230386AbhKLBUY (ORCPT ); Thu, 11 Nov 2021 20:20:24 -0500 X-UUID: 8bef31ca734f4c7db15d5148442fd4cd-20211112 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:MIME-Version:Content-Type:References:In-Reply-To:Date:CC:To:From:Subject:Message-ID; bh=J89u8ajOE7RnIe0Hf+cMtrKrCMlq2XyJUXaOQVwayHQ=; b=L3B38oRthqNSBzsV/ntQFDtKu8+u2+Usm+oFm+a8yw8z4Dg4QCEZS4nA02StJMQVK3bKby7dmZBOV+QCInQEm02ONMg+jaRgQ7DcHLdjyJatXuxycBJ965eCd2Eb1qYvdPRbPhIbwlaNlWUcNT2BzB8jv8F1bPBuhGU90RLPyjo=; X-UUID: 8bef31ca734f4c7db15d5148442fd4cd-20211112 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 824726951; Fri, 12 Nov 2021 09:17:30 +0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkmbs10n1.mediatek.inc (172.21.101.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.792.15; Fri, 12 Nov 2021 09:17:29 +0800 Received: from mhfsdcap04 (10.17.3.154) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 12 Nov 2021 09:17:28 +0800 Message-ID: <36653ae5c1e1babe314eabf070f3220a603d55c7.camel@mediatek.com> Subject: Re: [PATCH v2] memory: mtk-smi: Fix a null dereference for the ostd From: Yong Wu To: AngeloGioacchino Del Regno CC: Krzysztof Kozlowski , Joerg Roedel , Will Deacon , Robin Murphy , "Tomasz Figa" , , , , , , , , , , Ikjoon Jang , Hsin-Yi Wang , Krzysztof Kozlowski , Matthias Brugger Date: Fri, 12 Nov 2021 09:17:28 +0800 In-Reply-To: <1d72bac8-eb79-6f34-79ca-4c5c38d6d2bf@collabora.com> References: <20211108082429.15080-1-yong.wu@mediatek.com> <1d72bac8-eb79-6f34-79ca-4c5c38d6d2bf@collabora.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.2 MIME-Version: 1.0 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgQW5nZWxvR2lvYWNjaGlubywNCg0KVGhhbmtzIHZlcnkgbXVjaCBmb3IgeW91ciBoZWxwIHJl dmlldy4NCg0KT24gVGh1LCAyMDIxLTExLTExIGF0IDE0OjQxICswMTAwLCBBbmdlbG9HaW9hY2No aW5vIERlbCBSZWdubyB3cm90ZToNCj4gSWwgMDgvMTEvMjEgMDk6MjQsIFlvbmcgV3UgaGEgc2Ny aXR0bzoNCj4gPiBXZSBhZGQgdGhlIG9zdGQgc2V0dGluZyBmb3IgbXQ4MTk1LiBJdCBpbnRyb2R1 Y2VzIGEgS0UgZm9yIHRoZQ0KPiA+IHByZXZpb3VzIFNvQy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