lkml.org 
[lkml]   [2021]   [Mar]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5.11 169/775] drm/gma500: Fix error return code in psb_driver_load()
    Date
    From: Jialin Zhang <zhangjialin11@huawei.com>

    [ Upstream commit 6926872ae24452d4f2176a3ba2dee659497de2c4 ]

    Fix to return a negative error code from the error handling
    case instead of 0, as done elsewhere in this function.

    Fixes: 5c49fd3aa0ab ("gma500: Add the core DRM files and headers")
    Reported-by: Hulk Robot <hulkci@huawei.com>
    Signed-off-by: Jialin Zhang <zhangjialin11@huawei.com>
    Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
    Link: https://patchwork.freedesktop.org/patch/msgid/20201130020216.1906141-1-zhangjialin11@huawei.com
    Signed-off-by: Sasha Levin <sashal@kernel.org>
    ---
    drivers/gpu/drm/gma500/psb_drv.c | 2 ++
    1 file changed, 2 insertions(+)

    diff --git a/drivers/gpu/drm/gma500/psb_drv.c b/drivers/gpu/drm/gma500/psb_drv.c
    index cc2d59e8471da..134068f9328d5 100644
    --- a/drivers/gpu/drm/gma500/psb_drv.c
    +++ b/drivers/gpu/drm/gma500/psb_drv.c
    @@ -312,6 +312,8 @@ static int psb_driver_load(struct drm_device *dev, unsigned long flags)
    if (ret)
    goto out_err;

    + ret = -ENOMEM;
    +
    dev_priv->mmu = psb_mmu_driver_init(dev, 1, 0, 0);
    if (!dev_priv->mmu)
    goto out_err;
    --
    2.27.0


    \
     
     \ /
      Last update: 2021-03-02 04:40    [W:4.040 / U:0.052 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site