commit | 6d15f42c3a4be66b882fd5890da9b03734688aa6 | [log] [tgz] |
---|---|---|
author | Linux Build Service Account <lnxbuild@localhost> | Wed Nov 06 14:58:48 2013 -0800 |
committer | Gerrit - the friendly Code Review server <code-review@localhost> | Wed Nov 06 14:58:47 2013 -0800 |
tree | 337741ddf237ad67b331e299edccdc7578f2452c | |
parent | 7ab79564576b95905880cb6762c482d06327d342 [diff] | |
parent | ebcdc4b35831a9ce219c112ec974aa3a8f6e8cbc [diff] |
Merge "msm: Fix NULL pointer dereference in sensors ADSP driver."
diff --git a/arch/arm/mach-msm/sensors_adsp.c b/arch/arm/mach-msm/sensors_adsp.c index eb0026c..fab10b8 100644 --- a/arch/arm/mach-msm/sensors_adsp.c +++ b/arch/arm/mach-msm/sensors_adsp.c
@@ -355,6 +355,7 @@ if (temp == NULL) { pr_err("%s: allocation failure\n", __func__); rv = -ENOMEM; + goto out; } hdr->dst_module = SNS_OCMEM_MODULE_ADSP; @@ -387,6 +388,7 @@ kfree(temp); +out: return rv; }