Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/drm2/dist/drm drm: Make sure ioctl buffer i...
details: https://anonhg.NetBSD.org/src/rev/2c0179d8de11
branches: trunk
changeset: 369679:2c0179d8de11
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sat Aug 27 21:24:15 2022 +0000
description:
drm: Make sure ioctl buffer is aligned on stack.
diffstat:
sys/external/bsd/drm2/dist/drm/drm_ioctl.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r dd7f02495c69 -r 2c0179d8de11 sys/external/bsd/drm2/dist/drm/drm_ioctl.c
--- a/sys/external/bsd/drm2/dist/drm/drm_ioctl.c Sat Aug 27 21:18:39 2022 +0000
+++ b/sys/external/bsd/drm2/dist/drm/drm_ioctl.c Sat Aug 27 21:24:15 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: drm_ioctl.c,v 1.22 2021/12/19 12:40:43 riastradh Exp $ */
+/* $NetBSD: drm_ioctl.c,v 1.23 2022/08/27 21:24:15 riastradh Exp $ */
/*
* Created: Fri Jan 8 09:01:26 1999 by faith%valinux.com@localhost
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: drm_ioctl.c,v 1.22 2021/12/19 12:40:43 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drm_ioctl.c,v 1.23 2022/08/27 21:24:15 riastradh Exp $");
#include <linux/export.h>
#include <linux/nospec.h>
@@ -836,7 +836,7 @@
int
drm_ioctl(struct file *fp, unsigned long cmd, void *data)
{
- char stackbuf[128];
+ char stackbuf[128] __aligned(ALIGNBYTES + 1);
char *buf = stackbuf;
void *data0 = data;
struct drm_file *const file = fp->f_data;
Home |
Main Index |
Thread Index |
Old Index