Subject: [PATCH] LLC: fix procfs reading when there are saps without sockets

From: Arnaldo Carvalho de Melo <[email-masked]>
Date: Sat, 1 Nov 2003 04:55:04 -0200

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: