diff --git a/src/driver/mdso_driver_ctx.c b/src/driver/mdso_driver_ctx.c index d100c0a..8cff01d 100644 --- a/src/driver/mdso_driver_ctx.c +++ b/src/driver/mdso_driver_ctx.c @@ -301,8 +301,8 @@ void mdso_free_driver_ctx(struct mdso_driver_ctx * ctx) uintptr_t addr; if (ctx) { - addr = (uintptr_t)ctx - offsetof(struct mdso_driver_ctx_alloc,ctx); - addr = addr - offsetof(struct mdso_driver_ctx_impl,ctx); + addr = (uintptr_t)ctx - offsetof(struct mdso_driver_ctx_impl,ctx); + addr = addr - offsetof(struct mdso_driver_ctx_alloc,ctx); ictx = (struct mdso_driver_ctx_alloc *)addr; mdso_free_driver_ctx_impl(ictx); }