summaryrefslogtreecommitdiff
path: root/tools/lib/python/kdoc/python_version.py
diff options
context:
space:
mode:
authorLinkai Gong <gonglinkai@kylinos.cn>2026-08-06 15:03:58 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-10-01 14:00:59 +0200
commit0f3b12bab74e13a2b8686a49c5b83099da61e032 (patch)
tree59b49d0345208bc3463e210b2dbe9484488cf5ed /tools/lib/python/kdoc/python_version.py
parent6f80fd798b9f272bd09ca347a147e1750c70fcbe (diff)
misc: enclosure: fix UAF on device_register() failure
After device_register() fails, the embedded struct device has already been initialized and must be released with put_device() so that enclosure_release() can drop the parent reference and free edev. The error path currently does put_device(parent) + kfree(edev), which skips the device lifetime rules and can free the object while the device core still owns a reference (use-after-free). Fixes: d569d5bb3fd9 ("[SCSI] enclosure: add support for enclosure services") Signed-off-by: Linkai Gong <gonglinkai@kylinos.cn> Link: https://patch.msgid.link/20260806070358.1599627-1-gonglinkai@kylinos.cn Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions