mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Zack Rusin <zackr@vmware.com>
To: "konstantin.meskhidze@huawei.com" <konstantin.meskhidze@huawei.com>
Cc: "airlied@redhat.com" <airlied@redhat.com>,
	"thellstrom@vmware.com" <thellstrom@vmware.com>,
	"yusongping@huawei.com" <yusongping@huawei.com>,
	"dri-devel@lists.freedesktop.org"
	<dri-devel@lists.freedesktop.org>,
	"airlied@gmail.com" <airlied@gmail.com>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	Linux-graphics-maintainer <Linux-graphics-maintainer@vmware.com>,
	"daniel@ffwll.ch" <daniel@ffwll.ch>,
	"artem.kuzin@huawei.com" <artem.kuzin@huawei.com>
Subject: Re: [PATCH] drm/vmwgfx: fix typo of sizeof argument
Date: Wed, 6 Sep 2023 02:44:39 +0000	[thread overview]
Message-ID: <0d304850d6b3e0071dac7928f8dc7c92b25f1a92.camel@vmware.com> (raw)
In-Reply-To: <20230905100203.1716731-1-konstantin.meskhidze@huawei.com>

On Tue, 2023-09-05 at 18:02 +0800, Konstantin Meskhidze wrote:
> Since size of 'header' pointer and '*header' structure is equal on 64-bit
> machines issue probably didn't cause any wrong behavior. But anyway,
> fixing typo is required.
> 
> Fixes: 7a73ba7469cb ("drm/vmwgfx: Use TTM handles instead of SIDs as user-space
> surface handles.")
> Co-developed-by: Ivanov Mikhail <ivanov.mikhail1@huawei-partners.com>
> Signed-off-by: Konstantin Meskhidze <konstantin.meskhidze@huawei.com>
> ---
>  drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c
> b/drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c
> index 98e0723ca6f5..cc3f301ca163 100644
> --- a/drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c
> +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c
> @@ -1619,7 +1619,7 @@ static int vmw_cmd_tex_state(struct vmw_private *dev_priv,
>  {
>         VMW_DECLARE_CMD_VAR(*cmd, SVGA3dCmdSetTextureState);
>         SVGA3dTextureState *last_state = (SVGA3dTextureState *)
> -         ((unsigned long) header + header->size + sizeof(header));
> +         ((unsigned long) header + header->size + sizeof(*header));
>         SVGA3dTextureState *cur_state = (SVGA3dTextureState *)
>                 ((unsigned long) header + sizeof(*cmd));
>         struct vmw_resource *ctx;

Hah, yea, that's an old one. Thanks! I can push it through the drm-misc tree.

Reviewed-by: Zack Rusin <zackr@vmware.com>

z

      reply	other threads:[~2023-09-06  2:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-05 10:02 Konstantin Meskhidze
2023-09-06  2:44 ` Zack Rusin [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=0d304850d6b3e0071dac7928f8dc7c92b25f1a92.camel@vmware.com \
    --to=zackr@vmware.com \
    --cc=Linux-graphics-maintainer@vmware.com \
    --cc=airlied@gmail.com \
    --cc=airlied@redhat.com \
    --cc=artem.kuzin@huawei.com \
    --cc=daniel@ffwll.ch \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=konstantin.meskhidze@huawei.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=thellstrom@vmware.com \
    --cc=yusongping@huawei.com \
    /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®