summaryrefslogtreecommitdiff
path: root/drivers/phy/spacemit/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorDave Jiang <dave.jiang@intel.com>2026-06-11 16:03:05 -0700
committerDave Jiang <dave.jiang@intel.com>2026-06-11 18:08:34 -0700
commitdfe28c8592538152e9611341dae6f7be1735b3f1 (patch)
treedc979a734eefd4d90ffe27278b7e419199e18e0a /drivers/phy/spacemit/git@git.tavy.me:linux.git
parent50cc34be04a0ea7522b739c9c7a71367cfbc489c (diff)
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 'drivers/phy/spacemit/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions