[PATCH] Fix a crash during isimodem initialization
Alexander Kanavin
alexander.kanavin at nokia.com
Tue Dec 8 04:36:45 PST 2009
---
src/modem.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/modem.c b/src/modem.c
index 3a6a163..829e3c8 100644
--- a/src/modem.c
+++ b/src/modem.c
@@ -577,12 +577,12 @@ void ofono_modem_set_powered(struct ofono_modem *modem, ofono_bool_t powered)
OFONO_MODEM_INTERFACE,
"Powered", DBUS_TYPE_BOOLEAN,
&dbus_powered);
+ if (powered) {
+ if (modem->driver->pre_sim)
+ modem->driver->pre_sim(modem);
+ }
}
- if (powered) {
- if (modem->driver->pre_sim)
- modem->driver->pre_sim(modem);
- }
}
if (powering_down) {
--
1.6.3.3
--------------060006050801000008020609--
More information about the ofono
mailing list