Skip to content

Commit

Permalink
Merge branch 'master' into dependabot/pip/doc/sphinx/jinja2-3.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
anandaravuri authored Jan 17, 2024
2 parents bfb6064 + a53d5e0 commit 7b4af30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/libopae-c/api-shell.c
Original file line number Diff line number Diff line change
Expand Up @@ -985,7 +985,7 @@ fpga_result __OPAE_API__ fpgaPrepareBuffer(fpga_handle handle,

res = wrapped_handle->adapter_table->fpgaPrepareBuffer(
wrapped_handle->opae_handle, len, buf_addr, wsid, flags);
if (res != FPGA_OK)
if ((res != FPGA_OK) || !buf_addr)
return res;

res = afu_pin_buffer(wrapped_handle, *buf_addr, len, *wsid);
Expand Down

0 comments on commit 7b4af30

Please sign in to comment.