summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Kralevich <nnk@google.com>2012-03-01 17:07:43 -0800
committerNick Kralevich <nnk@google.com>2012-03-01 17:07:43 -0800
commite228b337da6bd37a1520cee4302f51fff1025c62 (patch)
treea4dfd985aa1d22bb5ea64261cd1b6252eaf6db6c
parenta668ffc93bd0eef29b143e0335bb63f69dc17dd8 (diff)
downloadmsm7k-e228b337da6bd37a1520cee4302f51fff1025c62.tar.gz
remove HAL_MODULE_INFO_SYM const
HAL_MODULE_INFO_SYM was declared as read-only, but the struct is written to by libhardware. This causes a segfault when -Wl,-z,relro is enabled. Fixed. Change-Id: I035932858b561a37be4d788639fd5e910e12b234
-rw-r--r--liblights/lights.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/liblights/lights.c b/liblights/lights.c
index fed150c..f75b7e3 100644
--- a/liblights/lights.c
+++ b/liblights/lights.c
@@ -410,7 +410,7 @@ static struct hw_module_methods_t lights_module_methods = {
/*
* The lights Module
*/
-const struct hw_module_t HAL_MODULE_INFO_SYM = {
+struct hw_module_t HAL_MODULE_INFO_SYM = {
.tag = HARDWARE_MODULE_TAG,
.version_major = 1,
.version_minor = 0,