lkml.org 
[lkml]   [2021]   [Nov]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Date
    SubjectRe: [PATCH v8 3/3] remoteproc: qcom: q6v5_wpss: Add support for sc7280 WPSS
    Quoting Rakesh Pillai (2021-11-02 06:44:33)
    > @@ -457,7 +608,13 @@ static int adsp_probe(struct platform_device *pdev)
    > if (ret)
    > goto free_rproc;
    >
    > - pm_runtime_enable(adsp->dev);
    > + ret = qcom_rproc_pds_attach(adsp->dev, adsp->proxy_pds,
    > + desc->proxy_pd_names);
    > + if (ret < 0) {
    > + dev_err(&pdev->dev, "Failed to attach proxy power domains\n");
    > + goto free_rproc;
    > + }
    > + adsp->proxy_pd_count = ret;

    Can we check this against the define so that we don't have more than the
    fixed number of power domains and try to access elements beyond the
    length of the array?

    \
     
     \ /
      Last update: 2021-11-16 23:55    [W:3.205 / U:0.052 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site