Commit 533c5454 authored by Linus Torvalds's avatar Linus Torvalds

Merge tag 'cxl-fixes-6.4-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl

Pull compute express link fixes from Dan Williams:

 - Fix a compilation issue with DEFINE_STATIC_SRCU() in the unit tests

 - Fix leaking kernel memory to a root-only sysfs attribute

* tag 'cxl-fixes-6.4-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl:
  cxl: Add missing return to cdat read error path
  tools/testing/cxl: Use DEFINE_STATIC_SRCU()
parents 838a8548 764d102e
...@@ -571,6 +571,7 @@ void read_cdat_data(struct cxl_port *port) ...@@ -571,6 +571,7 @@ void read_cdat_data(struct cxl_port *port)
/* Don't leave table data allocated on error */ /* Don't leave table data allocated on error */
devm_kfree(dev, cdat_table); devm_kfree(dev, cdat_table);
dev_err(dev, "CDAT data read error\n"); dev_err(dev, "CDAT data read error\n");
return;
} }
port->cdat.table = cdat_table + sizeof(__le32); port->cdat.table = cdat_table + sizeof(__le32);
......
...@@ -19,7 +19,7 @@ void register_cxl_mock_ops(struct cxl_mock_ops *ops) ...@@ -19,7 +19,7 @@ void register_cxl_mock_ops(struct cxl_mock_ops *ops)
} }
EXPORT_SYMBOL_GPL(register_cxl_mock_ops); EXPORT_SYMBOL_GPL(register_cxl_mock_ops);
static DEFINE_SRCU(cxl_mock_srcu); DEFINE_STATIC_SRCU(cxl_mock_srcu);
void unregister_cxl_mock_ops(struct cxl_mock_ops *ops) void unregister_cxl_mock_ops(struct cxl_mock_ops *ops)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment