Skip to content

Commit

Permalink
fixup! [LibOS,PAL] Add flexible device-specific IOCTL support
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitrii Kuvaiskii <[email protected]>
  • Loading branch information
dimakuv committed May 19, 2023
1 parent c2bf565 commit ed952fb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pal/src/host/linux-sgx/pal_devices.c
Original file line number Diff line number Diff line change
Expand Up @@ -719,6 +719,9 @@ static int collect_sub_regions(toml_array_t* root_toml_mem_region, void* root_en
goto out;
}

/* for simplicity, we try to get `array_len` field even for non-ptr sub regions; this
* will always return success (as we have a check on `array_len` existence above) and a
* dummy default `array_len = 1`, but it will be unused */
ret = get_sub_region_array_len(toml_sub_region, &cur_sub_region->array_len);
if (ret < 0) {
log_error("IOCTL: parsing of 'array_len' field failed");
Expand Down

0 comments on commit ed952fb

Please sign in to comment.