public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] add restore_flags to error path in irttp.c (245ac1)
@ 2001-05-27 20:43 Rasmus Andersen
  0 siblings, 0 replies; only message in thread
From: Rasmus Andersen @ 2001-05-27 20:43 UTC (permalink / raw)
  To: dag; +Cc: linux-irda, linux-kernel

Hi.

The following patch makes irttp_read_proc restore_flags()
in error cases too. Applies against 245ac1.


--- linux-245-ac1-clean/net/irda/irttp.c	Sun May 27 22:15:34 2001
+++ linux-245-ac1/net/irda/irttp.c	Sun May 27 22:37:59 2001
@@ -1598,7 +1598,7 @@
 	self = (struct tsap_cb *) hashbin_get_first(irttp->tsaps);
 	while (self != NULL) {
 		if (!self || self->magic != TTP_TSAP_MAGIC)
-			return len;
+			break;
 
 		len += sprintf(buf+len, "TSAP %d, ", i++);
 		len += sprintf(buf+len, "stsap_sel: %02x, ", 

-- 
Regards,
        Rasmus(rasmus@jaquet.dk)

Which is worse: Ignorance or Apathy?
Who knows? Who cares?

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-05-27 20:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-05-27 20:43 [PATCH] add restore_flags to error path in irttp.c (245ac1) Rasmus Andersen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox