diff options
author | Vishal Verma <vishal.l.verma@intel.com> | 2022-06-28 16:01:09 -0600 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2022-06-28 22:03:18 -0700 |
commit | e35f5718903b093be4b1d3833aa8a32f864a3ef1 (patch) | |
tree | e105abb052229ab67bea308c200f02095489e4d7 /tools/testing/cxl | |
parent | f50974eee5c4a5de1e4f1a3d873099f170df25f8 (diff) | |
download | linux-stable-e35f5718903b093be4b1d3833aa8a32f864a3ef1.tar.gz linux-stable-e35f5718903b093be4b1d3833aa8a32f864a3ef1.tar.bz2 linux-stable-e35f5718903b093be4b1d3833aa8a32f864a3ef1.zip |
cxl/mbox: Fix missing variable payload checks in cmd size validation
The conversion of command sizes to unsigned missed a couple of checks
against variable size payloads during command validation, which made all
variable payload commands unconditionally fail. Add the checks back using
the new CXL_VARIABLE_PAYLOAD scheme.
Fixes: 26f89535a5bb ("cxl/mbox: Use type __u32 for mailbox payload sizes")
Cc: <stable@vger.kernel.org>
Cc: Ira Weiny <ira.weiny@intel.com>
Cc: Dan Williams <dan.j.williams@intel.com>
Cc: Alison Schofield <alison.schofield@intel.com>
Reported-by: Abhi Cs <abhi.cs@intel.com>
Reviewed-by: Dan Williams <dan.j.williams@intel.com>
Reviewed-by: Alison Schofield <alison.schofield@intel.com>
Signed-off-by: Vishal Verma <vishal.l.verma@intel.com>
Link: https://lore.kernel.org/r/20220628220109.633564-1-vishal.l.verma@intel.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'tools/testing/cxl')
0 files changed, 0 insertions, 0 deletions