bitkeeper revision 1.462 (3f72123aFdH-T8rLWiFO2fSFpxZMYw)
authorkaf24@scramble.cl.cam.ac.uk <kaf24@scramble.cl.cam.ac.uk>
Wed, 24 Sep 2003 21:52:58 +0000 (21:52 +0000)
committerkaf24@scramble.cl.cam.ac.uk <kaf24@scramble.cl.cam.ac.uk>
Wed, 24 Sep 2003 21:52:58 +0000 (21:52 +0000)
ldt.c:
  Propagate errors from Xen segment checking hypercall via Xenolinux syscall to application.

xenolinux-2.4.22-sparse/arch/xeno/kernel/ldt.c

index 28ae39fd6023f12c4371ff8dd2d01e403f1065ff..501ce944840a20be535c804615f9155454d85b4e 100644 (file)
@@ -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);