diff options
| author | Dan Carpenter <[email protected]> | 2021-04-13 10:50:04 +0000 |
|---|---|---|
| committer | Wei Liu <[email protected]> | 2021-04-16 10:36:33 +0000 |
| commit | 3e9bf43f7f7a46f21ec071cb47be92d0874c48da (patch) | |
| tree | 00bfee82ecc1c1b8d9c18fdd7bc873453b9c3416 /lib/dynamic_debug.c | |
| parent | Drivers: hv: vmbus: remove unused function (diff) | |
| download | kernel-3e9bf43f7f7a46f21ec071cb47be92d0874c48da.tar.gz kernel-3e9bf43f7f7a46f21ec071cb47be92d0874c48da.zip | |
Drivers: hv: vmbus: Use after free in __vmbus_open()
The "open_info" variable is added to the &vmbus_connection.chn_msg_list,
but the error handling frees "open_info" without removing it from the
list. This will result in a use after free. First remove it from the
list, and then free it.
Fixes: 6f3d791f3006 ("Drivers: hv: vmbus: Fix rescind handling issues")
Signed-off-by: Dan Carpenter <[email protected]>
Reviewed-by: Andrea Parri <[email protected]>
Link: https://lore.kernel.org/r/YHV3XLCot6xBS44r@mwanda
Signed-off-by: Wei Liu <[email protected]>
Diffstat (limited to 'lib/dynamic_debug.c')
0 files changed, 0 insertions, 0 deletions
