diff options
author | Philip Yang <Philip.Yang@amd.com> | 2022-12-20 14:55:03 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2023-01-11 16:40:45 -0500 |
commit | 23b02b0e4678d9d30931eecd5e5dbb06db7f957f (patch) | |
tree | 4833f274f6284f0e7b3161f59eba958a24581917 /drivers/gpio/gpio-tps6586x.c | |
parent | 7f347e3f821743a02c249abe50e467a333fabcfe (diff) | |
download | linux-23b02b0e4678d9d30931eecd5e5dbb06db7f957f.tar.gz linux-23b02b0e4678d9d30931eecd5e5dbb06db7f957f.tar.bz2 linux-23b02b0e4678d9d30931eecd5e5dbb06db7f957f.zip |
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 <Philip.Yang@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpio/gpio-tps6586x.c')
0 files changed, 0 insertions, 0 deletions