Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/drm/dist/bsd-core initialize "addr" before ...
details: https://anonhg.NetBSD.org/src/rev/d4382552e854
branches: trunk
changeset: 335508:d4382552e854
user: chs <chs%NetBSD.org@localhost>
date: Sat Jan 10 23:34:49 2015 +0000
description:
initialize "addr" before passing its address to uvm_mmap_dev().
from Onno van der Linden in PR 49536.
diffstat:
sys/external/bsd/drm/dist/bsd-core/drm_bufs.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diffs (11 lines):
diff -r c8b8101cf9c8 -r d4382552e854 sys/external/bsd/drm/dist/bsd-core/drm_bufs.c
--- a/sys/external/bsd/drm/dist/bsd-core/drm_bufs.c Sat Jan 10 23:17:03 2015 +0000
+++ b/sys/external/bsd/drm/dist/bsd-core/drm_bufs.c Sat Jan 10 23:34:49 2015 +0000
@@ -1122,6 +1122,7 @@
#elif defined(__NetBSD__)
/* XXXNETBSD */
rsize = round_page(size);
+ addr = NULL;
retcode = uvm_mmap_dev(curproc, &addr, rsize, dev->kdev, foff);
vaddr = (vaddr_t)addr;
DRM_DEBUG("mmap %#lx/%#lx foff %#llx\n", vaddr, rsize, (long long)foff);
Home |
Main Index |
Thread Index |
Old Index