linux/drivers/cxl/core
Vishal Verma e35f571890 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: 26f89535a5 ("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>
2022-06-28 22:03:18 -07:00
..
core.h cxl/core/hdm: Add CXL standard decoder enumeration to the core 2022-02-08 22:57:30 -08:00
hdm.c cxl/core: Use is_endpoint_decoder 2022-06-21 14:09:00 -07:00
Makefile PM: CXL: Disable suspend 2022-04-22 16:09:42 -07:00
mbox.c cxl/mbox: Fix missing variable payload checks in cmd size validation 2022-06-28 22:03:18 -07:00
memdev.c cxl: Replace lockdep_mutex with local lock classes 2022-04-28 14:01:54 -07:00
pci.c cxl/port: Enable HDM Capability after validating DVSEC Ranges 2022-05-20 12:30:53 -07:00
pmem.c cxl: Drop cxl_device_lock() 2022-04-28 14:01:55 -07:00
port.c cxl/core: Use is_endpoint_decoder 2022-06-21 14:09:00 -07:00
regs.c cxl/regs: Fix size of CXL Capability Header Register 2022-02-08 23:15:33 -08:00
suspend.c PM: CXL: Disable suspend 2022-04-22 16:09:42 -07:00