drm/i915/gvt: Add valid length check for MI variable commands
authorGao, Fred <fred.gao@intel.com>
Thu, 18 Jul 2019 01:39:18 +0000 (09:39 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Tue, 13 Aug 2019 09:55:06 +0000 (17:55 +0800)
commit00a33be406349ae04a676e05c535987750f838ca
tree1f30507a0335af0ac1a3fbc6b3a7efff7c37bb0f
parent1e2adc0d037076fb1de6492dd152b368adea0d2d
drm/i915/gvt: Add valid length check for MI variable commands

Add valid length check for the commands with variable length.

v2: remove the macro definition. (Zhenyu)
v3: refine the LRI command. (Zhenyu)

Reviewed-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Signed-off-by: Gao, Fred <fred.gao@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/cmd_parser.c