Skip to content

Commit 39465ca

Browse files
BoardzMasterzackr
authored andcommitted
drm/vmwgfx: fix typo of sizeof argument
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: 7a73ba7 ("drm/vmwgfx: Use TTM handles instead of SIDs as user-space surface handles.") Co-developed-by: Ivanov Mikhail <[email protected]> Signed-off-by: Konstantin Meskhidze <[email protected]> Reviewed-by: Zack Rusin <[email protected]> Signed-off-by: Zack Rusin <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent b83ce9c commit 39465ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1619,7 +1619,7 @@ static int vmw_cmd_tex_state(struct vmw_private *dev_priv,
16191619
{
16201620
VMW_DECLARE_CMD_VAR(*cmd, SVGA3dCmdSetTextureState);
16211621
SVGA3dTextureState *last_state = (SVGA3dTextureState *)
1622-
((unsigned long) header + header->size + sizeof(header));
1622+
((unsigned long) header + header->size + sizeof(*header));
16231623
SVGA3dTextureState *cur_state = (SVGA3dTextureState *)
16241624
((unsigned long) header + sizeof(*cmd));
16251625
struct vmw_resource *ctx;

0 commit comments

Comments
 (0)