Skip to content

Commit 7c88b83

Browse files
committed
Fix accessing syncobj after freed
1 parent 7645bb4 commit 7c88b83

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

drivers/hv/dxgkrnl/dxgsyncfile.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -298,10 +298,8 @@ int dxgkio_open_syncobj_from_syncfile(struct dxgprocess *process,
298298
if (dmafence)
299299
dma_fence_put(dmafence);
300300
if (ret) {
301-
if (syncobj) {
301+
if (syncobj)
302302
dxgsyncobject_destroy(process, syncobj);
303-
kref_put(&syncobj->syncobj_kref, dxgsyncobject_release);
304-
}
305303
}
306304
if (adapter)
307305
dxgadapter_release_lock_shared(adapter);

0 commit comments

Comments
 (0)