diff options
author | Miaoqian Lin <linmq006@gmail.com> | 2025-08-28 10:00:51 +0300 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2025-09-10 15:24:16 +0300 |
commit | 7ebf70cf181651fe3f2e44e95e7e5073d594c9c0 (patch) | |
tree | 1e0bdceaf6ff30358fb1e81ea29337a9b4e79f3a /net/lapb/lapb_out.c | |
parent | c45601306aa5831c3e59158f95b8e34f27e9ea09 (diff) | |
download | linux-7ebf70cf181651fe3f2e44e95e7e5073d594c9c0.tar.xz |
um: virtio_uml: Fix use-after-free after put_device in probe
When register_virtio_device() fails in virtio_uml_probe(),
the code sets vu_dev->registered = 1 even though
the device was not successfully registered.
This can lead to use-after-free or other issues.
Fixes: 04e5b1fb0183 ("um: virtio: Remove device on disconnect")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/lapb/lapb_out.c')
0 files changed, 0 insertions, 0 deletions