summaryrefslogtreecommitdiff
path: root/net/bpfilter/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorBartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>2026-05-30 21:43:40 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-06-05 17:18:58 +0200
commit5b6b6fc491899d583eaa75344e094796ae9b530b (patch)
tree1e05db795f1b3d1f4e958dffd502894b002fad7d /net/bpfilter/git@git.tavy.me:linux.git
parentea41020b9018e31c2ea7e9d89021e3e6d7470883 (diff)
nvmem: core: fix use-after-free bugs in error paths
Fix several instances of error paths in which we call __nvmem_device_put() - which may end up freeing the underlying memory and other resources - and then keep on using the nvmem structure. Always put the reference to the nvmem device as the last step before returning the error code. Cc: stable@vger.kernel.org Fixes: 7ae6478b304b ("nvmem: core: rework nvmem cell instance creation") Fixes: e888d445ac33 ("nvmem: resolve cells from DT at registration time") Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com> Signed-off-by: Srinivas Kandagatla <srini@kernel.org> Link: https://patch.msgid.link/20260530204340.116743-3-srini@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/bpfilter/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions