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/i915 Don't forget to initiali...
details: https://anonhg.NetBSD.org/src/rev/f60b4c14711b
branches: trunk
changeset: 366179:f60b4c14711b
user: riastradh <riastradh%NetBSD.org@localhost>
date: Mon Aug 27 13:42:35 2018 +0000
description:
Don't forget to initialize uio_offset.
diffstat:
sys/external/bsd/drm2/dist/drm/i915/intel_guc_loader.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r b32c6d8cf6d0 -r f60b4c14711b sys/external/bsd/drm2/dist/drm/i915/intel_guc_loader.c
--- a/sys/external/bsd/drm2/dist/drm/i915/intel_guc_loader.c Mon Aug 27 13:42:24 2018 +0000
+++ b/sys/external/bsd/drm2/dist/drm/i915/intel_guc_loader.c Mon Aug 27 13:42:35 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: intel_guc_loader.c,v 1.9 2018/08/27 13:42:12 riastradh Exp $ */
+/* $NetBSD: intel_guc_loader.c,v 1.10 2018/08/27 13:42:35 riastradh Exp $ */
/*
* Copyright © 2014 Intel Corporation
@@ -29,7 +29,7 @@
* Alex Dai <yu.dai%intel.com@localhost>
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: intel_guc_loader.c,v 1.9 2018/08/27 13:42:12 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: intel_guc_loader.c,v 1.10 2018/08/27 13:42:35 riastradh Exp $");
#include <linux/firmware.h>
#include <linux/module.h>
@@ -548,6 +548,7 @@
iov.iov_len = fw->size;
uio.uio_iov = &iov;
uio.uio_iovcnt = 1;
+ uio.uio_offset = 0;
uio.uio_resid = fw->size;
uio.uio_rw = UIO_READ;
UIO_SETUP_SYSSPACE(&uio);
Home |
Main Index |
Thread Index |
Old Index