From: Dmitry Torokhov <dtor@vmware.com>
To: Wei Yongjun <weiyj.lk@gmail.com>
Cc: airlied@linux.ie, airlied@redhat.com, thellstrom@vmware.com,
brianp@vmware.com, daniel.vetter@ffwll.ch,
yongjun_wei@trendmicro.com.cn, dri-devel@lists.freedesktop.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] drm/vmwgfx: fix error return code in vmw_driver_load()
Date: Mon, 26 Aug 2013 00:56 -0700 [thread overview]
Message-ID: <8371335.jOCe9OeWEl@dtor-d630.eng.vmware.com> (raw)
In-Reply-To: <CAPgLHd-6AP74UFPzxU0dz2y+JyPSL1w+x5zd_hXCVLOuws8AYQ@mail.gmail.com>
On Monday, August 26, 2013 03:15:37 PM Wei Yongjun wrote:
> From: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
>
> Fix to return -ENOMEM in the fence manager init error handling
> case instead of 0, as done elsewhere in this function.
>
> Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: Dmitry Torokhov <dtor@vmware.com>
> ---
> drivers/gpu/drm/vmwgfx/vmwgfx_drv.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
> b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c index 78e2164..6dafefc 100644
> --- a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
> +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
> @@ -622,8 +622,10 @@ static int vmw_driver_load(struct drm_device *dev,
> unsigned long chipset) }
>
> dev_priv->fman = vmw_fence_manager_init(dev_priv);
> - if (unlikely(dev_priv->fman == NULL))
> + if (unlikely(dev_priv->fman == NULL)) {
> + ret = -ENOMEM;
> goto out_no_fman;
> + }
>
> vmw_kms_save_vga(dev_priv);
prev parent reply other threads:[~2013-08-26 8:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-26 7:15 Wei Yongjun
2013-08-26 7:56 ` Dmitry Torokhov [this message]
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=8371335.jOCe9OeWEl@dtor-d630.eng.vmware.com \
--to=dtor@vmware.com \
--cc=airlied@linux.ie \
--cc=airlied@redhat.com \
--cc=brianp@vmware.com \
--cc=daniel.vetter@ffwll.ch \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-kernel@vger.kernel.org \
--cc=thellstrom@vmware.com \
--cc=weiyj.lk@gmail.com \
--cc=yongjun_wei@trendmicro.com.cn \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®