From 767d2972631e93622ff02b7b4e041622f4c382e5 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Wed, 30 Mar 2011 13:30:50 -0500 Subject: [PATCH] modem: Only find registered atoms Change the semantics of __ofono_modem_find_atom to only return registered atoms. --- src/modem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modem.c b/src/modem.c index 908c7c58..96f36ffe 100644 --- a/src/modem.c +++ b/src/modem.c @@ -318,7 +318,7 @@ struct ofono_atom *__ofono_modem_find_atom(struct ofono_modem *modem, for (l = modem->atoms; l; l = l->next) { atom = l->data; - if (atom->type == type) + if (atom->type == type && atom->unregister != NULL) return atom; }