summaryrefslogtreecommitdiffstats
path: root/liblight
diff options
context:
space:
mode:
authorNick Kralevich <nnk@google.com>2012-03-01 16:20:39 -0800
committerNick Kralevich <nnk@google.com>2012-03-01 16:25:45 -0800
commit3455722ed36f669b797b89aa32ea27ee11f0b001 (patch)
treee592eccbdb494ac480f42fa64c2eee45bf758c06 /liblight
parent812af6bd6eb31db20025b3ff229078d3174cb1fb (diff)
downloaddevice_samsung_tuna-3455722ed36f669b797b89aa32ea27ee11f0b001.zip
device_samsung_tuna-3455722ed36f669b797b89aa32ea27ee11f0b001.tar.gz
device_samsung_tuna-3455722ed36f669b797b89aa32ea27ee11f0b001.tar.bz2
lights: 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: I209db88c745b3f1a0d0c8f08a287b7b7debd8352
Diffstat (limited to 'liblight')
-rw-r--r--liblight/lights.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/liblight/lights.c b/liblight/lights.c
index ff8b28e..1dfcd8b 100644
--- a/liblight/lights.c
+++ b/liblight/lights.c
@@ -211,7 +211,7 @@ static struct hw_module_methods_t lights_module_methods = {
.open = open_lights,
};
-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,