Skip to contentSkip to conversation

: ir250_cache_wait_data-2.diff

PATCH In review Jean Tourrilhes 2 participants 3 messages Jun 11, 2002 – Jun 18, 2002 Networking

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 : ir250_cache_wait_data-2.diff

ir250_cache_wait_data-2.diff :
----------------------------
o [CRITICA] Fix one instance were we forgot to clear LSAP cache
o [CORRECT] Fix a bogus conversion to wait_event() The socket closure would never propagate to the app

net/irda/irlmp.c renamed from net/irda/irlmp.d0.c +3 -0
diff -u -p linux/net/irda/irlmp.d0.c linux/net/irda/irlmp.c
@@ -647,6 +647,9 @@ int irlmp_disconnect_request(struct lsap
 	ASSERT(self->lap->lsaps != NULL, return -1;);
 
 	lsap = hashbin_remove(self->lap->lsaps, (int) self, NULL);
+#ifdef CONFIG_IRDA_CACHE_LAST_LSAP
+	self->lap->cache.valid = FALSE;
+#endif
 
 	ASSERT(lsap != NULL, return -1;);
 	ASSERT(lsap->magic == LMP_LSAP_MAGIC, return -1;);
net/irda/af_irda.c renamed from net/irda/af_irda.d0.c +34 -37

126 lines not on this page · raw message

#1 lore raw

Patch did not apply... I think you're a victim of __FUNCTION__ cleanups, possibly. Whoever did those in recent 2.5.x kernels didn't bother notifying any maintainers :(

#2 lore raw
Quoted 3 lines · Jeff Garzik

Patch did not apply... I think you're a victim of __FUNCTION__ cleanups, possibly. Whoever did those in recent 2.5.x kernels didn't bother notifying any maintainers :(

By the way, is there any more cleanups in the pipeline ? I
mean, the whitespace cleanups missed 50% of the code and the __FUNCTION__ cleanups missed 90% of the occurences, so should I expect more or can I redo my patches this week ?

	Thanks...

	Jean