Skip to content

Commit 533c545

Browse files
committed
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()
2 parents 838a854 + 764d102 commit 533c545

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

drivers/cxl/core/pci.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -571,6 +571,7 @@ void read_cdat_data(struct cxl_port *port)
571571
/* Don't leave table data allocated on error */
572572
devm_kfree(dev, cdat_table);
573573
dev_err(dev, "CDAT data read error\n");
574+
return;
574575
}
575576

576577
port->cdat.table = cdat_table + sizeof(__le32);

tools/testing/cxl/test/mock.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ void register_cxl_mock_ops(struct cxl_mock_ops *ops)
1919
}
2020
EXPORT_SYMBOL_GPL(register_cxl_mock_ops);
2121

22-
static DEFINE_SRCU(cxl_mock_srcu);
22+
DEFINE_STATIC_SRCU(cxl_mock_srcu);
2323

2424
void unregister_cxl_mock_ops(struct cxl_mock_ops *ops)
2525
{

0 commit comments

Comments
 (0)