Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mei: bus: block send with vtag on non-conformat FW

Block data send with vtag if either transport layer or
FW client are not supporting vtags.

Cc: <stable@vger.kernel.org> # v5.10+
Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Link: https://lore.kernel.org/r/20210208150649.141358-1-tomas.winkler@intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Alexander Usyskin and committed by
Greg Kroah-Hartman
b398d53c bf5c9cc8

+7
+7
drivers/misc/mei/bus.c
··· 61 61 goto out; 62 62 } 63 63 64 + if (vtag) { 65 + /* Check if vtag is supported by client */ 66 + rets = mei_cl_vt_support_check(cl); 67 + if (rets) 68 + goto out; 69 + } 70 + 64 71 if (length > mei_cl_mtu(cl)) { 65 72 rets = -EFBIG; 66 73 goto out;