aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdkfd/cik_event_interrupt.c
diff options
context:
space:
mode:
authorQiushi Wu <wu000273@umn.edu>2020-06-13 14:32:26 -0500
committerAlex Deucher <alexander.deucher@amd.com>2020-07-01 01:59:21 -0400
commit20eca0123a35305e38b344d571cf32768854168c (patch)
tree241cedaf49dc98edfa15263014b88ea2372fae09 /drivers/gpu/drm/amd/amdkfd/cik_event_interrupt.c
parentb205795677c034a1975e75a466ad158950fde4b4 (diff)
drm/amdkfd: Fix reference count leaks.
kobject_init_and_add() takes reference even when it fails. If this function returns an error, kobject_put() must be called to properly clean up the memory associated with the object. Signed-off-by: Qiushi Wu <wu000273@umn.edu> Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com> Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdkfd/cik_event_interrupt.c')
0 files changed, 0 insertions, 0 deletions