diff options
| author | Suren Baghdasaryan <[email protected]> | 2025-05-21 16:06:02 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2025-06-06 05:02:23 +0000 |
| commit | 044d2aee6c575231ed4a24fb3d119bad0937488b (patch) | |
| tree | 4245b8ad924b1ad58254023ffe9535b6cf953a21 /drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c | |
| parent | mm/madvise: handle madvise_lock() failure during race unwinding (diff) | |
| download | kernel-044d2aee6c575231ed4a24fb3d119bad0937488b.tar.gz kernel-044d2aee6c575231ed4a24fb3d119bad0937488b.zip | |
alloc_tag: handle module codetag load errors as module load failures
Failures inside codetag_load_module() are currently ignored. As a result
an error there would not cause a module load failure and freeing of the
associated resources. Correct this behavior by propagating the error code
to the caller and handling possible errors. With this change, error to
allocate percpu counters, which happens at this stage, will not be ignored
and will cause a module load failure and freeing of resources. With this
change we also do not need to disable memory allocation profiling when
this error happens, instead we fail to load the module.
Link: https://lkml.kernel.org/r/[email protected]
Fixes: 10075262888b ("alloc_tag: allocate percpu counters for module tags dynamically")
Signed-off-by: Suren Baghdasaryan <[email protected]>
Reported-by: Casey Chen <[email protected]>
Closes: https://lore.kernel.org/all/[email protected]/
Cc: Daniel Gomez <[email protected]>
Cc: David Wang <[email protected]>
Cc: Kent Overstreet <[email protected]>
Cc: Luis Chamberalin <[email protected]>
Cc: Petr Pavlu <[email protected]>
Cc: Sami Tolvanen <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c')
0 files changed, 0 insertions, 0 deletions
