Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit f745d971 authored by Zhenyu Wang's avatar Zhenyu Wang Committed by Greg Kroah-Hartman
Browse files

drm/i915/gvt: Fix cmd length check for MI_ATOMIC



commit 92b1aa773fadb4e2a90ed5d3beecb422d568ad9a upstream.

Correct valid command length check for MI_ATOMIC, need to check inline
data available field instead of operand data length for whole command.

Fixes: 00a33be4 ("drm/i915/gvt: Add valid length check for MI variable commands")
Reported-by: default avatarAlex Williamson <alex.williamson@redhat.com>
Acked-by: default avatarGao Fred <fred.gao@intel.com>
Cc: stable@vger.kernel.org
Signed-off-by: default avatarZhenyu Wang <zhenyuw@linux.intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f4585824
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment