All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] gprs: NULL-safe ofono_gprs_context_remove()
@ 2010-11-08 18:41 Pekka.Pessi
  2010-11-08 19:13 ` Denis Kenzior
  0 siblings, 1 reply; 2+ messages in thread
From: Pekka.Pessi @ 2010-11-08 18:41 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 523 bytes --]

From: Pekka Pessi <Pekka.Pessi@nokia.com>

Check for NULL in one place.
---
 src/gprs.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/gprs.c b/src/gprs.c
index 219bd4a..0f6fb0c 100644
--- a/src/gprs.c
+++ b/src/gprs.c
@@ -2083,6 +2083,9 @@ struct ofono_gprs_context *ofono_gprs_context_create(struct ofono_modem *modem,
 
 void ofono_gprs_context_remove(struct ofono_gprs_context *gc)
 {
+	if (gc == NULL)
+		return;
+
 	__ofono_atom_free(gc->atom);
 }
 
-- 
1.7.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] gprs: NULL-safe ofono_gprs_context_remove()
  2010-11-08 18:41 [PATCH] gprs: NULL-safe ofono_gprs_context_remove() Pekka.Pessi
@ 2010-11-08 19:13 ` Denis Kenzior
  0 siblings, 0 replies; 2+ messages in thread
From: Denis Kenzior @ 2010-11-08 19:13 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 212 bytes --]

Hi Pekka,

On 11/08/2010 12:41 PM, Pekka.Pessi(a)nokia.com wrote:
> From: Pekka Pessi <Pekka.Pessi@nokia.com>
> 
> Check for NULL in one place.
> ---

Patch has been applied, thanks.

Regards,
-Denis

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-11-08 19:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-08 18:41 [PATCH] gprs: NULL-safe ofono_gprs_context_remove() Pekka.Pessi
2010-11-08 19:13 ` Denis Kenzior

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.