Skip to content

Commit

Permalink
fixing reserved memory logic (#8164) (#8165)
Browse files Browse the repository at this point in the history
Signed-off-by: ch vamshi krishna <chvamshi@xilinx.com>
Co-authored-by: ch vamshi krishna <chvamshi@xilinx.com>
(cherry picked from commit 7072e5a)
  • Loading branch information
chvamshi-xilinx authored May 12, 2024
1 parent b81cd3f commit cb21060
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 cb21060

Please sign in to comment.