-
amdgpu_get_scrninfo allocates the memory pointed to by pAMDGPUEnt just before it calls amdgpu_open_drm_master, so pAMDGPUEnt->fd is always 0 in the latter. Also, no need to clear pAMDGPUEnt->fd just before freeing the memory it's stored in. Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
cef72512