diff options
| author | Linkai Gong <gonglinkai@kylinos.cn> | 2026-09-07 10:47:32 +0800 |
|---|---|---|
| committer | Danilo Krummrich <dakr@kernel.org> | 2026-09-07 19:41:15 +0200 |
| commit | 6d7e9bc51d8f2d73b3403c759c769f880082f9ae (patch) | |
| tree | 4eaba580e64bf7cdc3900c9796e0b19875316608 /tools/lib/python/kdoc/python_version.py | |
| parent | 27f23702470b9f7c962ddae2526b3de9fc8f3744 (diff) | |
drivers/base/node: fix UAF on device_register() failure
node_init_node_access() frees the access node with kfree() if
device_register() fails. After device_register() the embedded device is
initialized and must be released with put_device() so that
node_access_release() can free it.
Fixes: 08d9dbe72b1f ("node: Link memory nodes to their compute nodes")
Signed-off-by: Linkai Gong <gonglinkai@kylinos.cn>
Link: https://patch.msgid.link/20260907024732.1452228-1-gonglinkai@kylinos.cn
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
