DragonFlyBSD Kernel Audit
DF-2132 / fix.diff
← back to finding ↓ download raw
diff --git a/sys/dev/drm/linux_dma-buf.c b/sys/dev/drm/linux_dma-buf.c
--- a/sys/dev/drm/linux_dma-buf.c
+++ b/sys/dev/drm/linux_dma-buf.c
@@ -181,7 +181,7 @@
 	}
 
 	dmabuf = fp->private_data;
-	dropfp(curthread, fd, fp);
+	/* Keep file reference: caller drops via dma_buf_put()->fdrop() */
 
 	return dmabuf;
 }