diff options
Diffstat (limited to 'src/jtag/hla/hla_layout.c')
-rw-r--r-- | src/jtag/hla/hla_layout.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/jtag/hla/hla_layout.c b/src/jtag/hla/hla_layout.c index 04b50d7f..55657294 100644 --- a/src/jtag/hla/hla_layout.c +++ b/src/jtag/hla/hla_layout.c @@ -50,6 +50,12 @@ static int hl_layout_open(struct hl_interface_s *adapter) return res; } + /* make sure adapter has set the buffer size */ + if (!adapter->param.max_buffer) { + LOG_ERROR("buffer size not set"); + return ERROR_FAIL; + } + return ERROR_OK; } |