Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1267884rwi; Wed, 26 Oct 2022 13:02:01 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5FjRB6B7Yygq62NY+7iFENRIyler/5ZKh8f7COrpiy6fPQoFm9yNrCNwDw3+Y4N2qDGpRq X-Received: by 2002:a17:90b:4d08:b0:20a:6861:352c with SMTP id mw8-20020a17090b4d0800b0020a6861352cmr5993310pjb.225.1666814520948; Wed, 26 Oct 2022 13:02:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666814520; cv=none; d=google.com; s=arc-20160816; b=BEnUK5Nl7129qIIMZWKH9m0FFWyFVEbeXik0YCd5ozzIue1oDoNIJ/jK9qaPQ/56eH nto5AXpODf+Gtcsd38RBegw9q6ZCvt8njE3ZHmt6kb8ZYiwX822esIOhejjZuEWmbyIj JOPzTsJv1GJ2J12wHlKpW9fHzZk6MGCUG0Vq/eiU/vrjbJ3yjA6qsBpH11o3YDeBG2bn UEEQAwIg5n/p4S+1JGp9R5cCAZFLcsy4NDp0/EOENwMo51u1QBu7dtT4vKiebjWH0/EY 7T2f4FNuwrqjuSsphgTxrwXX4wrUsDHAKXYMBFdc+0WQ0npN66J4LUGxXJw0xstycY1u 36pw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=zMYZxL04hWH2PZ6vJak+KLXReH8LIrsCpuymZRqCQuk=; b=AS/YhAwIJsH0Vtv9FSe0w3GVWr1L4W+M2I61YIxefGbBMeZcy4E8LA53MKXThKKoJC c/+4EaunoRXh9Dm6uFTYBBP9ZpunOe0Jw/2B0BqBMudyWP4i9Loq/h0j0BSLq4/x9WEN hvl+6Vn1nedFuvbHWx5zENAVtZZdJ3B2/DoVng5ZCgCXsWHtVGZzxmjUo1+m4w60jNKv P2dPn5kA+BxhUT6DkzDlf9hDj6qH6mCjPgzGJd6pUiW9ondgdQ7o7viB3s5vm8gf5PMY eNCEBLED+RRz2bvH2wps7vd8mvpKyuS9Edaj1CmLQpgHAYmo6n5CIfQJ1iI8aKJCuBbN tAkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="ZAx/9und"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s10-20020a170902ea0a00b001751d0ac52asi9626290plg.435.2022.10.26.13.01.35; Wed, 26 Oct 2022 13:02:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="ZAx/9und"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235034AbiJZTny (ORCPT + 99 others); Wed, 26 Oct 2022 15:43:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40132 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235132AbiJZTnO (ORCPT ); Wed, 26 Oct 2022 15:43:14 -0400 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6BD0FD18C8 for ; Wed, 26 Oct 2022 12:42:47 -0700 (PDT) Received: by mail-lf1-x130.google.com with SMTP id g12so20402440lfh.3 for ; Wed, 26 Oct 2022 12:42:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=zMYZxL04hWH2PZ6vJak+KLXReH8LIrsCpuymZRqCQuk=; b=ZAx/9und4SFDOlvDZ90doIyigl1AirCbsf8z2YGYEMc3bk06egUUEnFcVFM1BgdTyc O6fqj4TVqhqMAN8EZm6Vt2eZtZN+qjWBNQMC5Vc8ukJIt8cumjiH8GcoHZEQOt74q9mO DdrGLyflrMRO8MnizNC6H9DQfc7mOATT+5ZjdplMQ6vvBi9bGzIj7fi7KdSr/ucrmhVf 6vUckxsvzBW2cu3KX6Kc8V+holQLkpum6Gma33Y1mke8Tt9Cfw0TQQ8aLWPMdESVJNOM ZuqtfXYPEvqAvUiv+PwWDtIk50PHjY5/pPnRD8rjjCIEn9XxQGSfqS3KM3yvbD5WQjwY OWGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=zMYZxL04hWH2PZ6vJak+KLXReH8LIrsCpuymZRqCQuk=; b=yujtnWIqfQxt4+08FizVYMBThexa/UM0k4MC4neQQ/+hS8cQz4zUrTLpYqoXwaczd/ aIZZJSL3TrmGgapTT3HOdHO2mMXYwmdBCTI5K8VOdjU+qPggdaGvpnjymZ4YKkjWsh3t Jsp5qFhAPe+CEalsJx9hUBxkcBmJYd6ycDY94BS8d93ClLLg45Wiqp/KgLuZoGJ455sh Ss05VW/B4RII5vWkNcwMy7uJlnS1UeTRMcfKKm2TIFnKpLpdCnyRg1uPbmyc/jMs0j3N oTs4OjvAympZnjlT5zHSHXWgSOvOjigT2SnviUHASiAZ9gY1blH8AoJ1eZAPc80KxXsx UqzA== X-Gm-Message-State: ACrzQf0Y1cjM1mfO0s3OgNZfErSZZ+0veeKB81+TuLgUXXMnCoOhKnqJ XCjqx6gRtFOVELZGkKj83csRYA== X-Received: by 2002:a05:6512:3d9f:b0:4a2:4986:281 with SMTP id k31-20020a0565123d9f00b004a249860281mr15907943lfv.123.1666813365853; Wed, 26 Oct 2022 12:42:45 -0700 (PDT) Received: from [10.27.10.248] ([195.165.23.90]) by smtp.gmail.com with ESMTPSA id b14-20020a056512070e00b0049f54c5f2a4sm943868lfs.229.2022.10.26.12.42.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 26 Oct 2022 12:42:45 -0700 (PDT) Message-ID: <5ff7957a-d220-f134-4b33-7c388dbb5627@linaro.org> Date: Wed, 26 Oct 2022 22:42:44 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.3 Subject: Re: [PATCH] phy: qcom-qmp-combo: fix NULL-deref on runtime resume Content-Language: en-GB To: Johan Hovold , Vinod Koul Cc: Andy Gross , Bjorn Andersson , Konrad Dybcio , linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org References: <20221026162116.26462-1-johan+linaro@kernel.org> From: Dmitry Baryshkov In-Reply-To: <20221026162116.26462-1-johan+linaro@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 26/10/2022 19:21, Johan Hovold wrote: > Commit fc64623637da ("phy: qcom-qmp-combo,usb: add support for separate > PCS_USB region") started treating the PCS_USB registers as potentially > separate from the PCS registers but used the wrong base when no PCS_USB > offset has been provided. > > Fix the PCS_USB base used at runtime resume to prevent dereferencing a > NULL pointer on platforms that do not provide a PCS_USB offset (e.g. > SC7180). > > Fixes: fc64623637da ("phy: qcom-qmp-combo,usb: add support for separate PCS_USB region") > Cc: stable@vger.kernel.org # 5.20 > Signed-off-by: Johan Hovold > --- > drivers/phy/qualcomm/phy-qcom-qmp-combo.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Dmitry Baryshkov -- With best wishes Dmitry