summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2026-11-02 09:25:36 +0100
committerDanilo Krummrich <dakr@kernel.org>2026-11-09 22:53:25 +0100
commitde7625abe4e92f1fb0047ed5f163b2ecaba77e50 (patch)
tree916937da67a9532644ba5d14d62984ebf75c4f8b /include/linux
parente41d395163d41bdb0e0e07bf945f409251351d84 (diff)
downloadlinux-next-de7625abe4e92f1fb0047ed5f163b2ecaba77e50.tar.gz
linux-next-de7625abe4e92f1fb0047ed5f163b2ecaba77e50.zip
devcoredump: fix double free on device registration failure
The device coredump class release function devcd_dev_release() puts the module reference and frees the data so just return after dropping the device reference on registration failures to avoid a module reference imbalance and double free. This issue was flagged by an LLM. Fixes: 833c95456a70 ("device coredump: add new device coredump class") Cc: stable@vger.kernel.org # 3.18 Cc: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Johan Hovold <johan@kernel.org> Link: https://patch.msgid.link/20261102082536.1275223-1-johan@kernel.org Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions