Skip to contentSkip to conversation

add restore_flags to error path in irttp.c (245ac1)

PATCH New Rasmus Andersen 1 participant 1 message May 27, 2001 Networking

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 add restore_flags to error path in irttp.c (245ac1)

Hi.

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

net/irda/irttp.c +1 -1
@@ -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, ", 
Signature · 5 lines
Regards,
        Rasmus([email protected])

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