diff options
| author | Abel Vesa <[email protected]> | 2022-11-24 17:49:40 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2023-01-20 12:23:09 +0000 |
| commit | 5bb96c8f9268e2fdb0e5321cbc358ee5941efc15 (patch) | |
| tree | de04bbb85af704bd9f05a8b4d29f2d7abb6079d7 /drivers/fpga/fpga-bridge.c | |
| parent | misc: fastrpc: Fix use-after-free and race in fastrpc_map_find (diff) | |
| download | kernel-5bb96c8f9268e2fdb0e5321cbc358ee5941efc15.tar.gz kernel-5bb96c8f9268e2fdb0e5321cbc358ee5941efc15.zip | |
misc: fastrpc: Don't remove map on creater_process and device_release
Do not remove the map from the list on error path in
fastrpc_init_create_process, instead call fastrpc_map_put, to avoid
use-after-free. Do not remove it on fastrpc_device_release either,
call fastrpc_map_put instead.
The fastrpc_free_map is the only proper place to remove the map.
This is called only after the reference count is 0.
Fixes: b49f6d83e290 ("misc: fastrpc: Fix a possible double free")
Cc: stable <[email protected]>
Co-developed-by: Ola Jeppsson <[email protected]>
Signed-off-by: Ola Jeppsson <[email protected]>
Signed-off-by: Abel Vesa <[email protected]>
Signed-off-by: Srinivas Kandagatla <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-bridge.c')
0 files changed, 0 insertions, 0 deletions
