drm/i915/gvt: Fix a memory leak in cmd_parser.c
authorZhi Wang <zhi.a.wang@intel.com>
Sun, 10 Sep 2017 13:36:21 +0000 (21:36 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Thu, 16 Nov 2017 03:46:50 +0000 (11:46 +0800)
commitbf4097ea5762bd90d836df9904594eb4822fefa7
tree784b0f88f341672605225cf86514f3609ccb7168
parent91d5d85442b2a65e5f4e1726565c1c1a8ba9976f
drm/i915/gvt: Fix a memory leak in cmd_parser.c

The pointer points to the original memory can never take the return value
of krealloc().

Signed-off-by: Zhi Wang <zhi.a.wang@intel.com>
drivers/gpu/drm/i915/gvt/cmd_parser.c