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/8d939178b7c5
branches:  trunk
changeset: 992878:8d939178b7c5
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 1576f3ed1789 -r 8d939178b7c5 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