LLC: fix procfs reading when there are saps without sockets

Started by Arnaldo Carvalho de Melo on Nov 1, 2003 · 2 messages from 2 authors · Last reply Nov 2, 2003

STALE8400d

open the first message on its own page

  1. [PATCH] LLC: fix procfs reading when there are saps without sockets
    Related patches
Hi David,

	Noticed while on a ssh over PF_LLC session on a machine that had
Appletalk/SNAP running, doing a cat /proc/net/llc/socket returned nothing
when there were the sshd listening socket and the ssh connection. Just
removing this anyway uneeded test fix this bug. Please apply.

Best Regards,

- Arnaldo

===== net/llc/llc_proc.c 1.20 vs edited =====
--- 1.20/net/llc/llc_proc.c	Thu Oct 30 16:35:41 2003
+++ edited/net/llc/llc_proc.c	Sat Nov  1 04:48:06 2003
@@ -48,8 +48,6 @@
 			--pos;
 		}
 		read_unlock_bh(&sap->sk_list.lock);
-		if (!pos)
-			break;
 	}
 	sk = NULL;
 found:
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help