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