From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============2348126972075088659==" MIME-Version: 1.0 From: Gustavo F. Padovan Subject: Re: [PATCH -v3 1/5] modem: only unref pending if it is a powered pending Date: Fri, 03 Dec 2010 19:37:04 -0200 Message-ID: <20101203213704.GA4432@vigoh> In-Reply-To: <1291402377-9211-1-git-send-email-padovan@profusion.mobi> List-Id: To: ofono@ofono.org --===============2348126972075088659== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable * Gustavo F. Padovan [2010-12-03 16:52:53 -0200]: > --- > src/modem.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > = > diff --git a/src/modem.c b/src/modem.c > index 52e647b..d6ab316 100644 > --- a/src/modem.c > +++ b/src/modem.c > @@ -804,7 +804,7 @@ void ofono_modem_set_powered(struct ofono_modem *mode= m, ofono_bool_t powered) > modem->timeout =3D 0; > } > = > - if (modem->pending !=3D NULL) { > + if (modem->powered_pending !=3D powered && modem->pending !=3D NULL) { This one is wrong, I'll resend it. It should be modem->powered instead of powered. -- = Gustavo F. Padovan http://profusion.mobi --===============2348126972075088659==--