From c29b5061394f58d8a40363e39fc00a48c50deb15 Mon Sep 17 00:00:00 2001 From: midipix Date: Tue, 25 Oct 2016 17:06:45 -0400 Subject: driver: pe_get_unit_ctx(): set driver error context. --- src/driver/pe_unit_ctx.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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; -- cgit v1.2.3