summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xpsi/psitop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/psi/psitop.c b/psi/psitop.c
index 4c02a3a60..784fb3013 100755
--- a/psi/psitop.c
+++ b/psi/psitop.c
@@ -309,7 +309,7 @@ ps_impl_get_device_memory(
*pmem = mem->stable_memory;
/* Lock against alloc_restore_all to release the device when called from gsapi_exit : */
- ((gs_ref_memory_t *)mem)->num_contexts++;
+ mem->num_contexts++;
return 0;
}