Skip to content

Commit 201cb25

Browse files
committed
Fixed coverity in acl_globals.cpp: Unchecked return value (CHECKED_RETURN)
1 parent 71d527e commit 201cb25

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/acl_globals.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,9 @@ cl_bool acl_init_from_hal_discovery(void) {
203203
return CL_FALSE;
204204
}
205205
// Probe the HAL for a device.
206-
acl_set_hal(board_hal);
206+
if (!acl_set_hal(board_hal)) {
207+
return CL_FALSE;
208+
}
207209

208210
if (use_offline_only != ACL_CONTEXT_OFFLINE_ONLY) {
209211
acl_present_board_is_valid_value = 1;

0 commit comments

Comments
 (0)