From: kaf24@scramble.cl.cam.ac.uk Date: Wed, 24 Sep 2003 21:52:58 +0000 (+0000) Subject: bitkeeper revision 1.462 (3f72123aFdH-T8rLWiFO2fSFpxZMYw) X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~18665 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=fea6971a1dad03fcf5aa070ca80ef28bf516a177;p=xen.git bitkeeper revision 1.462 (3f72123aFdH-T8rLWiFO2fSFpxZMYw) ldt.c: Propagate errors from Xen segment checking hypercall via Xenolinux syscall to application. --- diff --git a/xenolinux-2.4.22-sparse/arch/xeno/kernel/ldt.c b/xenolinux-2.4.22-sparse/arch/xeno/kernel/ldt.c index 28ae39fd60..501ce94484 100644 --- a/xenolinux-2.4.22-sparse/arch/xeno/kernel/ldt.c +++ b/xenolinux-2.4.22-sparse/arch/xeno/kernel/ldt.c @@ -152,8 +152,7 @@ static int write_ldt(void * ptr, unsigned long bytecount, int oldmode) /* Install the new entry ... */ install: - HYPERVISOR_update_descriptor(phys_lp, entry_1, entry_2); - error = 0; + error = HYPERVISOR_update_descriptor(phys_lp, entry_1, entry_2); out_unlock: up_write(&mm->mmap_sem);