diff options
| author | Dan Carpenter <[email protected]> | 2025-07-18 21:22:40 +0000 |
|---|---|---|
| committer | Dave Jiang <[email protected]> | 2025-07-18 22:05:39 +0000 |
| commit | 49d6e658e758e42aaff8ae5ecdd2d06b29abf53e (patch) | |
| tree | 51eb74251c4938cfab787b84e6d44c07e0f8f96f /rust/macros/module.rs | |
| parent | cxl: Fix -Werror=return-type in cxl_decoder_detach() (diff) | |
| download | kernel-49d6e658e758e42aaff8ae5ecdd2d06b29abf53e.tar.gz kernel-49d6e658e758e42aaff8ae5ecdd2d06b29abf53e.zip | |
cxl/region: Fix an ERR_PTR() vs NULL bug
The __cxl_decoder_detach() function is expected to return NULL on error
but this error path accidentally returns an error pointer. It could
potentially lead to an error pointer dereference in the caller. Change
it to return NULL.
Fixes: b3a88225519c ("cxl/region: Consolidate cxl_decoder_kill_region() and cxl_region_detach()")
Signed-off-by: Dan Carpenter <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Dave Jiang <[email protected]>
Diffstat (limited to 'rust/macros/module.rs')
0 files changed, 0 insertions, 0 deletions
