diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2023-05-14 21:32:34 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2023-05-14 21:32:34 +0200 |
commit | 533c54547153d46c0bf99ac0e396bed71f760c03 (patch) | |
tree | 4eb93cf6b02e7b85d88c8d7b8d78512a9f603564 /drivers | |
parent | Merge tag 'parisc-for-6.4-2' of git://git.kernel.org/pub/scm/linux/kernel/git... (diff) | |
parent | cxl: Add missing return to cdat read error path (diff) | |
download | linux-533c54547153d46c0bf99ac0e396bed71f760c03.tar.xz linux-533c54547153d46c0bf99ac0e396bed71f760c03.zip |
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()
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/cxl/core/pci.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/cxl/core/pci.c b/drivers/cxl/core/pci.c index bdbd907884ce..f332fe7af92b 100644 --- a/drivers/cxl/core/pci.c +++ b/drivers/cxl/core/pci.c @@ -571,6 +571,7 @@ void read_cdat_data(struct cxl_port *port) /* Don't leave table data allocated on error */ devm_kfree(dev, cdat_table); dev_err(dev, "CDAT data read error\n"); + return; } port->cdat.table = cdat_table + sizeof(__le32); |