Thread (12 messages) 12 messages, 5 authors, 2026-01-19

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

From: Markus Elfring <hidden>
Date: 2026-01-14 17:52:32
Also in: dri-devel, linux-devicetree, linux-doc, linux-media, lkml

quoted hunk ↗ jump to hunk
+++ 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help