aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gud/MobiCoreKernelApi/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gud/MobiCoreKernelApi/main.c')
-rw-r--r--drivers/gud/MobiCoreKernelApi/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gud/MobiCoreKernelApi/main.c b/drivers/gud/MobiCoreKernelApi/main.c
index e210483..a3e2e62 100644
--- a/drivers/gud/MobiCoreKernelApi/main.c
+++ b/drivers/gud/MobiCoreKernelApi/main.c
@@ -142,6 +142,7 @@ static int __init mcapi_init(void)
if (!modCtx->sk) {
MCDRV_ERROR("register of recieve handler failed");
+ kfree(modCtx);
return -EFAULT;
}
@@ -167,4 +168,4 @@ module_exit(mcapi_exit);
MODULE_AUTHOR("Giesecke & Devrient GmbH");
MODULE_LICENSE("Dual BSD/GPL");
-MODULE_DESCRIPTION("MobiCore API driver"); \ No newline at end of file
+MODULE_DESCRIPTION("MobiCore API driver");