All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/i915/gvt: Fix error handling bug in perform_bb_shadow
@ 2017-10-15 22:17 Christos Gkekas
  2017-10-16  6:04   ` Wang, Zhi A
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Christos Gkekas @ 2017-10-15 22:17 UTC (permalink / raw)
  To: fred gao, Zhenyu Wang, Zhi Wang, Jani Nikula, Joonas Lahtinen,
	Rodrigo Vivi, David Airlie, intel-gvt-dev, intel-gfx, dri-devel,
	linux-kernel
  Cc: Christos Gkekas

Change the type of variable 'bb_size' from uint32_t to int to be able to
hold error return values from find_bb_size(). This change seems to have
been missed from previous commit 1e3197d6ad73.

Signed-off-by: Christos Gkekas <chris.gekas@gmail.com>
---
 drivers/gpu/drm/i915/gvt/cmd_parser.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/gvt/cmd_parser.c b/drivers/gpu/drm/i915/gvt/cmd_parser.c
index 2c0ccbb..f41cbf6 100644
--- a/drivers/gpu/drm/i915/gvt/cmd_parser.c
+++ b/drivers/gpu/drm/i915/gvt/cmd_parser.c
@@ -1628,7 +1628,7 @@ static int perform_bb_shadow(struct parser_exec_state *s)
 	struct intel_shadow_bb_entry *entry_obj;
 	struct intel_vgpu *vgpu = s->vgpu;
 	unsigned long gma = 0;
-	uint32_t bb_size;
+	int bb_size;
 	void *dst = NULL;
 	int ret = 0;
 
-- 
2.7.4

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

end of thread, other threads:[~2017-10-16 17:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-15 22:17 [PATCH] drm/i915/gvt: Fix error handling bug in perform_bb_shadow Christos Gkekas
2017-10-16  6:04 ` Wang, Zhi A
2017-10-16  6:04   ` Wang, Zhi A
2017-10-16 10:51 ` ✓ Fi.CI.BAT: success for " Patchwork
2017-10-16 17:11 ` ✓ Fi.CI.IGT: " Patchwork

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.