Skip to content

Commit

Permalink
Fix for CR-1224994 and CR-1226988
Browse files Browse the repository at this point in the history
Signed-off-by: bisingha <[email protected]>
  • Loading branch information
bisingha-xilinx committed Feb 5, 2025
1 parent 0eedfbe commit dacba83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime_src/core/edge/drm/zocl/edge/zocl_edge_xclbin.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ zocl_xclbin_read_axlf(struct drm_zocl_dev *zdev, struct drm_zocl_axlf *axlf_obj,

/* Get full axlf header */
size_of_header = sizeof(struct axlf_section_header);
num_of_sections = axlf_head.m_header.m_numSections - 1;
num_of_sections = axlf_head.m_header.m_numSections;
axlf_size = sizeof(struct axlf) + size_of_header * num_of_sections;
axlf = vmalloc(axlf_size);
if (!axlf) {
Expand Down

0 comments on commit dacba83

Please sign in to comment.