Liang He dfd0287bd3 drm/amdgpu: Fix potential double free and null pointer dereference
In amdgpu_get_xgmi_hive(), we should not call kfree() after
kobject_put() as the PUT will call kfree().

In amdgpu_device_ip_init(), we need to check the returned *hive*
which can be NULL before we dereference it.

Signed-off-by: Liang He <windhl@126.com>
Reviewed-by: Luben Tuikov <luben.tuikov@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2022-11-29 11:03:37 -05:00
..
2022-11-15 11:51:45 -05:00
2022-11-16 07:17:32 +10:00
2022-11-15 11:51:45 -05:00
2022-11-16 07:17:32 +10:00
2022-04-07 12:53:54 +02:00
2022-04-25 11:17:45 +02:00
2021-05-19 23:50:27 -04:00
2022-01-19 22:32:47 -05:00
2022-05-04 09:53:12 -04:00
2022-05-04 10:43:54 -04:00
2022-05-10 17:53:11 -04:00
2021-10-20 11:43:57 -04:00
2022-03-22 10:53:39 -04:00
2021-05-19 23:50:27 -04:00
2021-10-20 11:43:57 -04:00