diff options
author | Philip Yang <[email protected]> | 2022-12-20 14:55:03 -0500 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2023-01-11 16:40:45 -0500 |
commit | 23b02b0e4678d9d30931eecd5e5dbb06db7f957f (patch) | |
tree | 4833f274f6284f0e7b3161f59eba958a24581917 /lib/test_fortify/write_overflow-strlcpy-src.c | |
parent | 7f347e3f821743a02c249abe50e467a333fabcfe (diff) |
drm/amdkfd: Cleanup vm process info if init vm failed
If acquire_vm failed when initializing KFD vm, set vm->process_info to
NULL and free process info, otherwise, the future acquire_vm will
always fail as vm->process_info is not NULL.
Pass avm as parameter to remove the duplicate code.
Signed-off-by: Philip Yang <[email protected]>
Reviewed-by: Felix Kuehling <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strlcpy-src.c')
0 files changed, 0 insertions, 0 deletions