summaryrefslogtreecommitdiff
path: root/drivers/staging/vt6655
diff options
context:
space:
mode:
authorDave Jiang <dave.jiang@intel.com>2024-03-09 00:59:27 +0300
committerDan Williams <dan.j.williams@intel.com>2024-03-12 22:34:11 +0300
commit3d8be8b398e3d315200d6c139f0166fe5f1bd576 (patch)
tree7ea3dbf9c94896a10e8b630aba1914d917511ad1 /drivers/staging/vt6655
parent6ef83c4e19e9ce20a05127eec8a10911cf3516a7 (diff)
downloadlinux-3d8be8b398e3d315200d6c139f0166fe5f1bd576.tar.xz
cxl: Set cxlmd->endpoint before adding port device
Move setting of cxlmd->endpoint to before calling add_device() on the port device. Otherwise when referencing cxlmd->endpoint in region discovery code that is triggered by the port driver probe function, the endpoint port pointer is not valid. Current code does not hit this issue yet since cxlmd->endpoint is not being referenced during region discovery. However follow on code that does performance calculations will. Tested-by: Wonjae Lee <wj28.lee@samsung.com> Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Tested-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Signed-off-by: Dave Jiang <dave.jiang@intel.com> Link: https://lore.kernel.org/r/20240308220055.2172956-9-dave.jiang@intel.com Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/staging/vt6655')
0 files changed, 0 insertions, 0 deletions