Skip to contentSkip to conversation

LLC: fix procfs reading when there are saps without sockets

PATCH Applied Arnaldo Carvalho de Melo 2 participants 2 messages Nov 1, 2003 – Nov 2, 2003

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 LLC: fix procfs reading when there are saps without sockets

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 =====

net/llc/llc_proc.c +0 -2
@@ -48,8 +48,6 @@
 			--pos;
 		}
 		read_unlock_bh(&sap->sk_list.lock);
-		if (!pos)
-			break;
 	}
 	sk = NULL;
 found: