Home Home > GIT Browse > openSUSE-15.0
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2018-07-09 17:53:02 +0200
committerTakashi Iwai <tiwai@suse.de>2018-07-09 17:53:17 +0200
commitf2fda2f9886c2499653e305e377f386f978459b0 (patch)
treec82881da4c00acf16883ee9eae9604a4dfcff86e
parentbae4f8b732fc7b6804621d0e3fc95ca9f94554ad (diff)
drm/i915/gvt: fix memory leak of a cmd_entry struct on error
exit path (bsc#1051510). suse-commit: 51bfd6bc87553d27dbf3e01db009c426f21769ac
-rw-r--r--drivers/gpu/drm/i915/gvt/cmd_parser.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/gvt/cmd_parser.c b/drivers/gpu/drm/i915/gvt/cmd_parser.c
index db6b94dda5df..6bd56ecda31c 100644
--- a/drivers/gpu/drm/i915/gvt/cmd_parser.c
+++ b/drivers/gpu/drm/i915/gvt/cmd_parser.c
@@ -2863,6 +2863,7 @@ static int init_cmd_table(struct intel_gvt *gvt)
if (info) {
gvt_err("%s %s duplicated\n", e->info->name,
info->name);
+ kfree(e);
return -EEXIST;
}