From 6771d80337fddf4e7164e914663a5a3c023309e8 Mon Sep 17 00:00:00 2001 From: Marcel Moolenaar Date: Fri, 3 Sep 1999 06:18:39 +0000 Subject: [PATCH] I missed the namechange of field desc in struct i386_ldt_args into descs while reviewing luoqi's changes... Pointed out by: luoqi --- sys/compat/linux/linux_misc.c | 4 ++-- sys/i386/linux/linux_misc.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c index 2dd6a8096dcf..3bca8cfc3ada 100644 --- a/sys/compat/linux/linux_misc.c +++ b/sys/compat/linux/linux_misc.c @@ -1379,7 +1379,7 @@ linux_modify_ldt(p, uap) case 0x00: /* read_ldt */ ldt = stackgap_alloc(&sg, sizeof(*ldt)); ldt->start = 0; - ldt->desc = uap->ptr; + ldt->descs = uap->ptr; ldt->num = uap->bytecount / sizeof(union descriptor); args.op = I386_GET_LDT; args.parms = (char*)ldt; @@ -1398,7 +1398,7 @@ linux_modify_ldt(p, uap) ldt = stackgap_alloc(&sg, sizeof(*ldt)); desc = stackgap_alloc(&sg, sizeof(*desc)); ldt->start = ld.entry_number; - ldt->desc = desc; + ldt->descs = desc; ldt->num = 1; desc->sd.sd_lolimit = (ld.limit & 0x0000ffff); desc->sd.sd_hilimit = (ld.limit & 0x000f0000) >> 16; diff --git a/sys/i386/linux/linux_misc.c b/sys/i386/linux/linux_misc.c index 2dd6a8096dcf..3bca8cfc3ada 100644 --- a/sys/i386/linux/linux_misc.c +++ b/sys/i386/linux/linux_misc.c @@ -1379,7 +1379,7 @@ linux_modify_ldt(p, uap) case 0x00: /* read_ldt */ ldt = stackgap_alloc(&sg, sizeof(*ldt)); ldt->start = 0; - ldt->desc = uap->ptr; + ldt->descs = uap->ptr; ldt->num = uap->bytecount / sizeof(union descriptor); args.op = I386_GET_LDT; args.parms = (char*)ldt; @@ -1398,7 +1398,7 @@ linux_modify_ldt(p, uap) ldt = stackgap_alloc(&sg, sizeof(*ldt)); desc = stackgap_alloc(&sg, sizeof(*desc)); ldt->start = ld.entry_number; - ldt->desc = desc; + ldt->descs = desc; ldt->num = 1; desc->sd.sd_lolimit = (ld.limit & 0x0000ffff); desc->sd.sd_hilimit = (ld.limit & 0x000f0000) >> 16;