diff options
| author | Dave Jiang <dave.jiang@intel.com> | 2026-06-12 02:03:05 +0300 |
|---|---|---|
| committer | Dave Jiang <dave.jiang@intel.com> | 2026-06-12 04:08:34 +0300 |
| commit | dfe28c8592538152e9611341dae6f7be1735b3f1 (patch) | |
| tree | dc979a734eefd4d90ffe27278b7e419199e18e0a /include/linux | |
| parent | 50cc34be04a0ea7522b739c9c7a71367cfbc489c (diff) | |
| download | linux-dfe28c8592538152e9611341dae6f7be1735b3f1.tar.xz | |
cxl/test: Add check after kzalloc() memory in alloc_mock_res()
alloc_mock_res() calls kzalloc() without checking the return value.
Add scope based resource management to deal with the allocated memory
cleanly.
Reported-by: sashiko-bot
Fixes: 67dcdd4d3b83 ("tools/testing/cxl: Introduce a mocked-up CXL port hierarchy")
Reviewed-by: Alison Schofield <alison.schofield@intel.com>
Link: https://patch.msgid.link/20260611230305.197390-1-dave.jiang@intel.com
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
