From 2d6dbc73cf19c8f418850f875ed6624eab9d128b Mon Sep 17 00:00:00 2001 From: Lukasz Stanislawski Date: Thu, 11 Feb 2016 15:52:53 +0100 Subject: [PATCH] modules/information/ext_storage: fix sigsegv Change-Id: I8418d0cb6e252dc37de2d878c1afef33d947e3f7 Signed-off-by: Lukasz Stanislawski --- src/modules/information/ext_storage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/information/ext_storage.c b/src/modules/information/ext_storage.c index a57050f..99546d0 100644 --- a/src/modules/information/ext_storage.c +++ b/src/modules/information/ext_storage.c @@ -173,7 +173,7 @@ static int register_ext_storage_module(void *data) state = EXT_STORAGE_STATE_REMOVED; - ret = storage_foreach_device_supported (_storage_register_cb, (void *)state); + ret = storage_foreach_device_supported (_storage_register_cb, (void *)&state); retvm_if(ret != STORAGE_ERROR_NONE, FAIL, "storage_foreach_device_supported failed[%s]", get_error_message(ret)); -- 2.7.4