summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-10-25 17:06:45 -0400
committermidipix <writeonce@midipix.org>2016-11-10 23:35:54 -0500
commitc29b5061394f58d8a40363e39fc00a48c50deb15 (patch)
treea3f7856f2f18f23cd9fd2e90b886fd736f4f2101 /src
parent9a382d263f4ace806724dcf4c9d96d7180c234f8 (diff)
downloadperk-c29b5061394f58d8a40363e39fc00a48c50deb15.tar.bz2
perk-c29b5061394f58d8a40363e39fc00a48c50deb15.tar.xz
driver: pe_get_unit_ctx(): set driver error context.
Diffstat (limited to 'src')
-rw-r--r--src/driver/pe_unit_ctx.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/driver/pe_unit_ctx.c b/src/driver/pe_unit_ctx.c
index 2845689..b3dae71 100644
--- a/src/driver/pe_unit_ctx.c
+++ b/src/driver/pe_unit_ctx.c
@@ -40,6 +40,9 @@ int pe_get_unit_ctx(
else if (!(ctx = calloc(1,sizeof(*ctx))))
return PERK_BUFFER_ERROR(dctx);
+ pe_driver_set_ectx(
+ dctx,0,path);
+
prot = (dctx->cctx->actflags & PERK_ACTION_MAP_READWRITE)
? PROT_READ | PROT_WRITE
: PROT_READ;