aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gud/MobiCoreKernelApi/main.c
diff options
context:
space:
mode:
authorcodeworkx <codeworkx@cyanogenmod.com>2012-09-22 09:48:20 +0200
committercodeworkx <codeworkx@cyanogenmod.com>2012-09-22 14:02:16 +0200
commit2489007e7d740ccbc3e0a202914e243ad5178787 (patch)
treeb8e6380ea7b1da63474ad68a5dba997e01146043 /drivers/gud/MobiCoreKernelApi/main.c
parent5f67568eb31e3a813c7c52461dcf66ade15fc2e7 (diff)
downloadkernel_samsung_smdk4412-2489007e7d740ccbc3e0a202914e243ad5178787.zip
kernel_samsung_smdk4412-2489007e7d740ccbc3e0a202914e243ad5178787.tar.gz
kernel_samsung_smdk4412-2489007e7d740ccbc3e0a202914e243ad5178787.tar.bz2
merge opensource jb u5
Change-Id: I1aaec157aa196f3448eff8636134fce89a814cf2
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");