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

Markus Elfring Markus.Elfring at web.de
Wed Jan 14 09:51:59 PST 2026


…
> +++ 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



More information about the linux-arm-kernel mailing list