Skip to content

Commit

Permalink
fixing reserved memory logic (#8164)
Browse files Browse the repository at this point in the history
Signed-off-by: ch vamshi krishna <[email protected]>
Co-authored-by: ch vamshi krishna <[email protected]>
  • Loading branch information
chvamshi-xilinx and ch vamshi krishna authored May 12, 2024
1 parent 19785b2 commit 7072e5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/runtime_src/core/edge/drm/zocl/common/zocl_bo.c
Original file line number Diff line number Diff line change
Expand Up @@ -1232,8 +1232,8 @@ static bool check_for_reserved_memory(uint64_t start_addr, size_t size)
/* Check the given address and size fall
* in this reserved memory region
*/
if (start_addr >= res_mem.start &&
size <= resource_size(&res_mem)) {
if (start_addr == res_mem.start &&
size == resource_size(&res_mem)) {
of_node_put(mem_np);
return true;
}
Expand Down

0 comments on commit 7072e5a

Please sign in to comment.