From: abhinavk@codeaurora.org
To: Wei Li <liwei391@huawei.com>
Cc: Rob Clark <robdclark@gmail.com>, Sean Paul <sean@poorly.run>,
David Airlie <airlied@linux.ie>, Daniel Vetter <daniel@ffwll.ch>,
Rajesh Yadav <ryadav@codeaurora.org>,
Sravanthi Kollukuduru <skolluku@codeaurora.org>,
linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org,
freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org,
guohanjun@huawei.com
Subject: Re: [PATCH] drm/msm: Fix error return code in msm_drm_init()
Date: Tue, 17 Nov 2020 11:52:52 -0800 [thread overview]
Message-ID: <e1539aaff024566bc1e64eb7897ec6c7@codeaurora.org> (raw)
In-Reply-To: <20201117023649.26657-1-liwei391@huawei.com>
On 2020-11-16 18:36, Wei Li wrote:
> When it fail to create crtc_event kthread, it just jump to
> err_msm_uninit,
> while the 'ret' is not updated. So assign the return code before that.
>
> Fixes: 25fdd5933e4c ("drm/msm: Add SDM845 DPU support")
> Reported-by: Hulk Robot <hulkci@huawei.com>
> Signed-off-by: Wei Li <liwei391@huawei.com>
Reviewed-by: Abhinav Kumar <abhinavk@codeaurora.org>
> ---
> drivers/gpu/drm/msm/msm_drv.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/gpu/drm/msm/msm_drv.c
> b/drivers/gpu/drm/msm/msm_drv.c
> index 49685571dc0e..37a373c5ced3 100644
> --- a/drivers/gpu/drm/msm/msm_drv.c
> +++ b/drivers/gpu/drm/msm/msm_drv.c
> @@ -506,6 +506,7 @@ static int msm_drm_init(struct device *dev, struct
> drm_driver *drv)
> "crtc_event:%d", priv->event_thread[i].crtc_id);
> if (IS_ERR(priv->event_thread[i].worker)) {
> DRM_DEV_ERROR(dev, "failed to create crtc_event kthread\n");
> + ret = PTR_ERR(priv->event_thread[i].worker);
> goto err_msm_uninit;
> }
WARNING: multiple messages have this Message-ID (diff)
From: abhinavk@codeaurora.org
To: Wei Li <liwei391@huawei.com>
Cc: freedreno@lists.freedesktop.org,
Rajesh Yadav <ryadav@codeaurora.org>,
David Airlie <airlied@linux.ie>,
linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org,
dri-devel@lists.freedesktop.org, guohanjun@huawei.com,
Sean Paul <sean@poorly.run>,
Sravanthi Kollukuduru <skolluku@codeaurora.org>
Subject: Re: [PATCH] drm/msm: Fix error return code in msm_drm_init()
Date: Tue, 17 Nov 2020 11:52:52 -0800 [thread overview]
Message-ID: <e1539aaff024566bc1e64eb7897ec6c7@codeaurora.org> (raw)
In-Reply-To: <20201117023649.26657-1-liwei391@huawei.com>
On 2020-11-16 18:36, Wei Li wrote:
> When it fail to create crtc_event kthread, it just jump to
> err_msm_uninit,
> while the 'ret' is not updated. So assign the return code before that.
>
> Fixes: 25fdd5933e4c ("drm/msm: Add SDM845 DPU support")
> Reported-by: Hulk Robot <hulkci@huawei.com>
> Signed-off-by: Wei Li <liwei391@huawei.com>
Reviewed-by: Abhinav Kumar <abhinavk@codeaurora.org>
> ---
> drivers/gpu/drm/msm/msm_drv.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/gpu/drm/msm/msm_drv.c
> b/drivers/gpu/drm/msm/msm_drv.c
> index 49685571dc0e..37a373c5ced3 100644
> --- a/drivers/gpu/drm/msm/msm_drv.c
> +++ b/drivers/gpu/drm/msm/msm_drv.c
> @@ -506,6 +506,7 @@ static int msm_drm_init(struct device *dev, struct
> drm_driver *drv)
> "crtc_event:%d", priv->event_thread[i].crtc_id);
> if (IS_ERR(priv->event_thread[i].worker)) {
> DRM_DEV_ERROR(dev, "failed to create crtc_event kthread\n");
> + ret = PTR_ERR(priv->event_thread[i].worker);
> goto err_msm_uninit;
> }
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2020-11-17 19:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-17 2:36 [PATCH] drm/msm: Fix error return code in msm_drm_init() Wei Li
2020-11-17 2:36 ` Wei Li
2020-11-17 19:52 ` abhinavk [this message]
2020-11-17 19:52 ` abhinavk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e1539aaff024566bc1e64eb7897ec6c7@codeaurora.org \
--to=abhinavk@codeaurora.org \
--cc=airlied@linux.ie \
--cc=daniel@ffwll.ch \
--cc=dri-devel@lists.freedesktop.org \
--cc=freedreno@lists.freedesktop.org \
--cc=guohanjun@huawei.com \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=liwei391@huawei.com \
--cc=robdclark@gmail.com \
--cc=ryadav@codeaurora.org \
--cc=sean@poorly.run \
--cc=skolluku@codeaurora.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.