]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2ec9e1c2dbf6827d91911b13cf854c0d9ee5ea65
tree1f30507a0335af0ac1a3fbc6b3a7efff7c37bb0f
parentfe56f6a8a60bafa336c2b69cb9089d97f6b73eb3
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