Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/hppa/hppa Get a large enough buffer for the LIF DIR



details:   https://anonhg.NetBSD.org/src/rev/943ca33ccd74
branches:  trunk
changeset: 455914:943ca33ccd74
user:      skrll <skrll%NetBSD.org@localhost>
date:      Wed Apr 17 20:46:38 2019 +0000

description:
Get a large enough buffer for the LIF DIR

diffstat:

 sys/arch/hppa/hppa/disksubr.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r b13cc98bb2c3 -r 943ca33ccd74 sys/arch/hppa/hppa/disksubr.c
--- a/sys/arch/hppa/hppa/disksubr.c     Wed Apr 17 20:41:58 2019 +0000
+++ b/sys/arch/hppa/hppa/disksubr.c     Wed Apr 17 20:46:38 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: disksubr.c,v 1.3 2019/04/03 22:10:50 christos Exp $    */
+/*     $NetBSD: disksubr.c,v 1.4 2019/04/17 20:46:38 skrll Exp $       */
 
 /*     $OpenBSD: disksubr.c,v 1.6 2000/10/18 21:00:34 mickey Exp $     */
 
@@ -68,7 +68,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: disksubr.c,v 1.3 2019/04/03 22:10:50 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: disksubr.c,v 1.4 2019/04/17 20:46:38 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -228,7 +228,7 @@
                struct buf *dbp;
                struct hppa_lifdir *p;
 
-               dbp = geteblk(HPPA_LIF_DIRSIZE);
+               dbp = geteblk(lp->d_secsize);
                dbp->b_dev = bp->b_dev;
 
                /* read LIF directory */



Home | Main Index | Thread Index | Old Index