public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH] vmwgfx: Fix assignment in vmw_framebuffer_create_handle
@ 2012-01-27  6:25 Ryan Mallon
  2012-01-27 14:09 ` Thomas Hellstrom
  2012-01-27 15:32 ` Thomas Hellstrom
  0 siblings, 2 replies; 8+ messages in thread
From: Ryan Mallon @ 2012-01-27  6:25 UTC (permalink / raw)
  To: airlied, airlied, thellstrom, jakob
  Cc: dri-devel, linux-kernel@vger.kernel.org, joe Perches

The assignment of handle in vmw_framebuffer_create_handle doesn't
actually do anything useful and is incorrectly assigning an integer
value to a pointer argument. It appears that this is a typo and should
be dereferencing handle rather than assigning to it directly.
    
Signed-off-by: Ryan Mallon <rmallon@gmail.com>
---

diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c
index 0af6ebd..b66ef0e 100644
--- a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c
+++ b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c
@@ -378,7 +378,7 @@ int vmw_framebuffer_create_handle(struct drm_framebuffer *fb,
 				  unsigned int *handle)
 {
 	if (handle)
-		handle = 0;
+		*handle = 0;
 
 	return 0;
 }


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-01-27 15:32 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-27  6:25 [RFC PATCH] vmwgfx: Fix assignment in vmw_framebuffer_create_handle Ryan Mallon
2012-01-27 14:09 ` Thomas Hellstrom
2012-01-27 14:24   ` Jakob Bornecrantz
2012-01-27 14:28     ` Thomas Hellstrom
2012-01-27 14:41       ` Jakob Bornecrantz
2012-01-27 14:54         ` Thomas Hellstrom
2012-01-27 15:01           ` Jakob Bornecrantz
2012-01-27 15:32 ` Thomas Hellstrom

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox