src/topology.c: Fix NULL check
Now that HsaNodeProperties is passed in to
topology_get_node_props_from_drm, check that pointer instead of the
pointer for MarketingName (which throws a compiler warning)
Signed-off-by: kent.russell@amd.com <kent.russell@amd.com>
Change-Id: If76b24e1bab5a62e514ab440b6316c7b7cd264c1
[ROCm/ROCR-Runtime commit: ea4d4917c1]
Dieser Commit ist enthalten in:
@@ -1014,7 +1014,7 @@ static int topology_get_node_props_from_drm(HsaNodeProperties *props)
|
||||
const char *name;
|
||||
int i, ret = 0;
|
||||
|
||||
if (props->MarketingName == NULL)
|
||||
if (props == NULL)
|
||||
return -1;
|
||||
|
||||
drm_fd = drmOpenRender(props->DrmRenderMinor);
|
||||
|
||||
In neuem Issue referenzieren
Einen Benutzer sperren