Re: [PATCH v2 4/5] accel/thames: Add IOCTL for job submission

From: Markus Elfring

Date: Wed Jan 14 2026 - 12:52:32 EST



> +++ b/drivers/accel/thames/thames_job.c
> @@ -0,0 +1,463 @@

> +static int thames_job_push(struct thames_job *job)
> +{

> + dev_dbg(tdev->ddev.dev, "Pushing job with %u in BOs and %u out BOs\n", job->in_bo_count,
> + job->out_bo_count);
> + bos = kvmalloc_array(job->in_bo_count + job->out_bo_count, sizeof(void *), GFP_KERNEL);
> + memcpy(bos, job->in_bos, job->in_bo_count * sizeof(void *));


Why was error detection for a memory allocation failure omitted (or overlooked)
so far at this source code place?

Regards,
Markus