mirror of
https://github.com/NVIDIA/open-gpu-kernel-modules.git
synced 2026-02-04 23:29:58 +00:00
550.40.59
This commit is contained in:
@@ -200,18 +200,26 @@ NV_STATUS uvm_tracker_add_tracker(uvm_tracker_t *dst, uvm_tracker_t *src)
|
||||
NV_STATUS status;
|
||||
uvm_tracker_entry_t *src_entry;
|
||||
|
||||
UVM_ASSERT(dst != NULL);
|
||||
|
||||
if (src == NULL)
|
||||
return NV_OK;
|
||||
|
||||
if (src == dst)
|
||||
return NV_OK;
|
||||
|
||||
if (uvm_tracker_is_empty(src))
|
||||
return NV_OK;
|
||||
|
||||
status = uvm_tracker_reserve(dst, src->size);
|
||||
if (status == NV_ERR_NO_MEMORY) {
|
||||
uvm_tracker_remove_completed(dst);
|
||||
uvm_tracker_remove_completed(src);
|
||||
status = reserve_for_entries_from_tracker(dst, src);
|
||||
}
|
||||
if (status != NV_OK) {
|
||||
|
||||
if (status != NV_OK)
|
||||
return status;
|
||||
}
|
||||
|
||||
for_each_tracker_entry(src_entry, src) {
|
||||
status = uvm_tracker_add_entry(dst, src_entry);
|
||||
|
||||
Reference in New Issue
Block a user