Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/luna68k/dev Consistently use sc_shm_size initialize...



details:   https://anonhg.NetBSD.org/src/rev/88fd376177f4
branches:  trunk
changeset: 820397:88fd376177f4
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sun Jan 08 16:41:35 2017 +0000

description:
Consistently use sc_shm_size initialized at device attach.

diffstat:

 sys/arch/luna68k/dev/xp.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 9b1636fe614b -r 88fd376177f4 sys/arch/luna68k/dev/xp.c
--- a/sys/arch/luna68k/dev/xp.c Sun Jan 08 16:34:44 2017 +0000
+++ b/sys/arch/luna68k/dev/xp.c Sun Jan 08 16:41:35 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: xp.c,v 1.2 2017/01/08 16:34:44 tsutsui Exp $ */
+/* $NetBSD: xp.c,v 1.3 2017/01/08 16:41:35 tsutsui Exp $ */
 
 /*-
  * Copyright (c) 2016 Izumi Tsutsui.  All rights reserved.
@@ -29,7 +29,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xp.c,v 1.2 2017/01/08 16:34:44 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xp.c,v 1.3 2017/01/08 16:41:35 tsutsui Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -220,7 +220,7 @@
        case XPIOCDOWNLD:
                downld = addr;
                loadsize = downld->size;
-               if (loadsize == 0 || loadsize > XP_SHM_SIZE) {
+               if (loadsize == 0 || loadsize > sc->sc_shm_size) {
                        return EINVAL;
                }
 



Home | Main Index | Thread Index | Old Index