summaryrefslogtreecommitdiff
path: root/mm/tests/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorFrancesco Lavra <flavra@baylibre.com>2026-06-16 13:44:29 +0200
committerMark Brown <broonie@kernel.org>2026-06-16 14:13:48 +0100
commit9108f7fa493b4c88cbc09503e0c164244456bad5 (patch)
tree3b4623b5f661c0c3cdb544c33e05890aa9debb2f /mm/tests/git@git.tavy.me:linux.git
parent34808ac8ddafc3e2c2a59e84eaab0a410e7a0fdc (diff)
regcache: Do not overwrite error code when finalizing cache after error
During regcache initialization, if an error occurs in the cache_ops->populate callback, and if cache operations include an exit callback, the error code from populate() is overwritten with the return value from exit(). This hides the error condition from the caller of regcache_init(), and can cause NULL pointer dereferences when the regcache is later accessed. Fixes: 94a3a95f0315 ("regcache: Add ->populate() callback to separate from ->init()") Signed-off-by: Francesco Lavra <flavra@baylibre.com> Link: https://patch.msgid.link/20260616114429.1852456-1-flavra@baylibre.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'mm/tests/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions