tests/capops: actually use the passed capability, fix frame_identify in twolevel...
authorReto Achermann <reto.achermann@inf.ethz.ch>
Tue, 16 Jul 2019 09:53:24 +0000 (11:53 +0200)
committerReto Achermann <reto.achermann@inf.ethz.ch>
Tue, 16 Jul 2019 09:53:24 +0000 (11:53 +0200)
Signed-off-by: Reto Achermann <reto.achermann@inf.ethz.ch>

usr/tests/capops/retype.c
usr/tests/twolevel_cspace/test_create_l1l2.c

index 0e8b0c7..d28e04a 100644 (file)
@@ -45,7 +45,7 @@ static errval_t frame_ram_identify(struct capref cap, struct frame_identity *id)
 
 
     struct capability thecap;
-    err = cap_direct_identify(bunch_o_ram, &thecap);
+    err = cap_direct_identify(cap, &thecap);
     if (err_is_fail(err)) {
         return err;
     }
index ddadcd0..a20f126 100644 (file)
@@ -32,7 +32,7 @@ static errval_t frame_ram_identify(struct capref cap, struct frame_identity *id)
 
 
     struct capability thecap;
-    err = cap_direct_identify(bunch_o_ram, &thecap);
+    err = cap_direct_identify(cap, &thecap);
     if (err_is_fail(err)) {
         return err;
     }