aboutsummaryrefslogtreecommitdiff
path: root/kernel/ethosu_inference.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/ethosu_inference.c')
-rw-r--r--kernel/ethosu_inference.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/ethosu_inference.c b/kernel/ethosu_inference.c
index 60ed954..50007d0 100644
--- a/kernel/ethosu_inference.c
+++ b/kernel/ethosu_inference.c
@@ -220,7 +220,7 @@ static long ethosu_inference_ioctl(struct file *file,
switch (cmd) {
case ETHOSU_IOCTL_INFERENCE_STATUS: {
- struct ethosu_uapi_result_status uapi;
+ struct ethosu_uapi_result_status uapi = { 0 };
int i;
uapi.status = inf->status;
@@ -244,7 +244,7 @@ static long ethosu_inference_ioctl(struct file *file,
break;
}
case ETHOSU_IOCTL_INFERENCE_CANCEL: {
- struct ethosu_uapi_cancel_inference_status uapi;
+ struct ethosu_uapi_cancel_inference_status uapi = { 0 };
dev_info(dev,
"Inference ioctl: Cancel Inference. Handle=%p\n",